Open ChakshuGupta13 opened 3 years ago
Yes, it is correct.
Thanks for flagging this. Would you mind opening a PR with this correction? Thanks!
I'm also facing similar issue while using babel-loader
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration has an unknown property 'modules'.
const path = require('path');
module.exports = {
entry: {
barba: './js/barba.js',
kursor: './js/kursor.js',
snowflakes: './js/snowflakes.js',
},
modules: {
rules: [
{
test: /\.(js)$/,
use: "babel-loader",
},
],
},
output: {
path: path.resolve(__dirname, "dist"),
filename: 'bundle.js',
},
mode: 'production'
}
apparently, removing babel-loader does fix this error
yes I am also facing this problem configuration.module.rules[9].use has an unknown property 'exclude'. These properties are valid: object { ident?, loader?, options? }
In the getting-started.md, while proceeding with Step 3, I received the following error:
With the help the documentation of webpack (babel-loader), I changed the code mentioned in the Step 3 with the following lines:
Though I am not sure whether it is correct patch for this error but it should be resolved as soon as possible.