KyleAMathews/react-gravatar

Build failing after upgrading

Closed this issue · 5 comments

After updating to the newest version, my webpack build is failing. Any ideas?

Module build failed: ReferenceError: Unknown plugin "transform-object-rest-spread" specified in "/Users/satazor/Work/npms/npms-www/node_modules/react-gravatar/.babelrc" at 0, attempted to resolve relative to "/Users/satazor/Work/npms/npms-www/node_modules/react-gravatar"

You need to exclude node_modules from babel_loader.
On Mon, Jul 4, 2016 at 5:10 PM André Cruz notifications@github.com wrote:

After updating to the newest version, my webpack build is failing. Any
ideas?

Module build failed: ReferenceError: Unknown plugin "transform-object-rest-spread" specified in "/Users/satazor/Work/npms/npms-www/node_modules/react-gravatar/.babelrc" at 0, attempted to resolve relative to "/Users/satazor/Work/npms/npms-www/node_modules/react-gravatar"


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#61, or mute the
thread
https://github.com/notifications/unsubscribe/AAEVh9scVYXT74XMTU8ODQ_533g7wTP0ks5qSaD1gaJpZM4JEslj
.

I've fixed it, thanks for the tip.

Please write how did u fixed this?

@mtetno if you're seeing the same error, make sure your webpack is setup the same as here: https://github.com/babel/babel-loader#usage

Specifically the exclude key.