Segue erro e como está o código:
PS C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial> npm start
> petshop_estudo@1.0.0 start C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial
> webpack --config webpack.config.js
[webpack-cli] SyntaxError: Invalid regular expression: /(\p{Uppercase_Letter}+|\p{Lowercase_Letter}|\d)(\p{Uppercase_Letter}+)/: Invalid escape
at pathToArgumentName (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack\lib\cli.js:66:4)
at addFlag (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack\lib\cli.js:170:16)
at traverse (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack\lib\cli.js:243:21)
at traverse (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack\lib\cli.js:299:23)
at traverse (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack\lib\cli.js:248:24)
at Object.getArguments (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack\lib\cli.js:308:2)
at WebpackCLI.getBuiltInOptions (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack-cli\lib\webpack-cli.js:404:47)
at loadCommandByName (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack-cli\lib\webpack-cli.js:554:38)
at Command.program.action (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack-cli\lib\webpack-cli.js:1091:23)
at Command.listener [as _actionHandler] (C:\Users\camiranda\Desktop\cvs\petshop_estudo\spa_js-projeto_inicial\node_modules\webpack-cli\node_modules\commander\index.js:922:31)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! petshop_estudo@1.0.0 start: `webpack --config webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the petshop_estudo@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\camiranda\AppData\Roaming\npm-cache\_logs\2021-02-24T14_58_20_299Z-debug.log
código:
const path = require("path")
module.exports = {
mode: "development",
entry: "./src/components/listagem/listagem-cliente.js",
output: {
filename: "main.js",
path: path.resolve(_dirname, "dist")
}
}
package json
{
"name": "petshop_estudo",
"version": "1.0.0",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"webpack": "^5.24.1",
"webpack-cli": "^4.5.0"
},
"scripts": {
"start": "webpack --config webpack.config.js"
},
"author": "",
"license": "ISC",
"description": ""
}