const path = require("path")
module.exports = {
module: "development",
entry: "./src/componentes/lista/listagem-clientes.js",
output: {
filename: "main.js",
path: path.resolve(__dirname, "dist")
}
}
PS C:\Users\marc.romel\Documents\ReactJs-Formation\spaJs> npm start
> spa_js@1.0.0 start C:\Users\marc.romel\Documents\ReactJs-Formation\spaJs
> webpack --config webpack.config.js
[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.module should be an object:
object { defaultRules?, exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, strictExportPresence?, strictThisContextOnImports?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }
-> Options affecting the normal modules (`NormalModuleFactory`).
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! spa_js@1.0.0 start: `webpack --config webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the spa_js@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\marc.romel\AppData\Roaming\npm-cache\_logs\2020-10-26T12_51_20_035Z-debug.log