Vue the same project and put it on different computers. After installing the required package, open the project and report an error.

vue the same project and put it on another computer. After installing the required package, open the project and report an error

\build\webpack.base.conf.js:45
      ...(config.dev.useEslint ? [createLintingRule()] : []),
      ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\\Practice\vue-travel\build\webpack.dev.conf.js:7:27)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)

Mar.18,2021

nodejs version is too low. Upgrade


es6 syntax is not supported when compiling to see if something babel is missing during installation, or .babelrc is not configured correctly

.
Menu