grommet / grommet-cli

Deprecated, use create-react-app for v2 instead. Command Line interface for grommet
Apache License 2.0
28 stars 18 forks source link

Error when including .babel in webpack config file name #42

Open karatechops opened 7 years ago

karatechops commented 7 years ago

I initially encountered the following error with Grommet CLI 5.0.0 and a webpack config titled webpack.config.babel.js

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration should be an object.

After digging through the cli bin folder I noticed this line so I changed my webpack config file name to webpack.config.js and my project builds as expected. It would seem that the .default is the culprit, I switched through a few recent versions of Node to see if maybe there was a discrepancy there but Node 6.9.4 and up all seem to return undefined when reaching for the default export of the webpack config file.

This would most likely indicate a bug in how babel is interpreting the default export of the webpack config.

L0ZZI commented 6 years ago

Still cropping up?