-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running webpack #55
Comments
Here is an updated version of the
|
Apparently I was able to make a workaround with this: module: { But thanks for the reply! Appreciate much. |
At first I was getting this error:
Then after following @sdubrez suggested changes here, now I'm getting this error:
This is following the code in 1-basic-react tutorial |
I ran webpack for the first tutorial I encountered this issue:
$ webpack
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
-> Options affecting the normal modules (
NormalModuleFactory
).From serverless/serverless#4788
Fixed by changing loaders to rules in webpack.config.js
But then saving and running webpack again I encountered another issue.
ERROR in ./js/client.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
TypeError: Cannot read property 'babel' of undefined
at Object.module.exports (<skip>..\react-js-tutorials\1-basic-react\node_modules\babel-loader\lib\index.js:103:36)
Hope you can help me on this thanks!
The text was updated successfully, but these errors were encountered: