Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Linux运行失败,node module报错 #7

Open
JackGzj opened this issue Jul 7, 2021 · 0 comments
Open

Linux运行失败,node module报错 #7

JackGzj opened this issue Jul 7, 2021 · 0 comments

Comments

@JackGzj
Copy link

JackGzj commented Jul 7, 2021

在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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant