okhelper-web icon indicating copy to clipboard operation
okhelper-web copied to clipboard

Linux运行失败,node module报错

Open JackGzj opened this issue 3 years ago • 0 comments

在linux上npm install之后npm run dev运行,报如下错误: ERROR Failed to compile with 2 errors 4:52:12 PM

error in ./src/main.js

Syntax Error: /root/okhelper-web-master/node_modules/babel-plugin-import/lib/Plugin.js:61 return {...pluginState.selectedMethods[methodName]}; ^^^

SyntaxError: Unexpected token ...

@ multi (webpack)-dev-server/client?http://localhost:8088 webpack/hot/dev-server ./src/main.js

error in (webpack)-dev-server/client?http://localhost:8088

Syntax Error: /root/okhelper-web-master/node_modules/babel-plugin-import/lib/Plugin.js:61 return {...pluginState.selectedMethods[methodName]}; ^^^

SyntaxError: Unexpected token ...

@ multi (webpack)-dev-server/client?http://localhost:8088 webpack/hot/dev-server ./src/main.js

JackGzj avatar Jul 07 '21 08:07 JackGzj