Npm run dev reported an error

error message:
SyntaxError: Invalid or unexpected token

at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at WEBPACK_OPTIONS (/usr/local/lib/node_modules/webpack-cli/bin/convert-argv.js:133:13)

npm err! Code ELIFECYCLE
npm err! Errno 1
npm err! My_vue@ dev: webpack-dev-server-- inline-- hot
npm err! Exit status 1
npm err!
npm err! Failed at the my_vue@ dev script.
npm err! This is probably not a problem with npm. There is likely additional logging output above.

Mar.06,2021

SyntaxError: Invalid or unexpected token is obviously a syntax error. Check your webpack configuration file or show it to you

Menu