Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

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

Open
karatechops opened this issue Aug 7, 2017 · 1 comment
Open

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

karatechops opened this issue Aug 7, 2017 · 1 comment

Comments

@karatechops
Copy link

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
Copy link

L0ZZI commented Jan 30, 2018

Still cropping up?

@L0ZZI L0ZZI added waiting and removed waiting labels Feb 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants