KyleAMathews / react-gravatar

React component for rendering a gravatar profile image
http://kyleamathews.github.io/react-gravatar/
MIT License
279 stars 33 forks source link

Build failing after upgrading #61

Closed satazor closed 8 years ago

satazor commented 8 years ago

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"
KyleAMathews commented 8 years ago

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 https://github.com/KyleAMathews/react-gravatar/issues/61, or mute the thread https://github.com/notifications/unsubscribe/AAEVh9scVYXT74XMTU8ODQ_533g7wTP0ks5qSaD1gaJpZM4JEslj .

satazor commented 8 years ago

I've fixed it, thanks for the tip.

mtetno commented 8 years ago

Please write how did u fixed this?

KyleAMathews commented 8 years ago

@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

KyleAMathews commented 8 years ago

Specifically the exclude key.