如何解决意外的令牌名称«i»,预期的标点«;» [./~/uuid/dist/bytes至Uuid.js:14,0]
错误
npm run build在反应中给出以下错误
static/js/main.18b04f97.js from UglifyJs
//could not find Uuid.js file ================= ERROR FILE ============================
SyntaxError: Unexpected token name «i»,expected punc «;» [./~/uuid/dist/bytesTo
Uuid.js:14,0]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
package.json
{
"name": "client","version": "0.1.0","private": true,"dependencies": {
"axios": "^0.19.2","moment": "^2.27.0","react": "^16.13.1","react-dom": "^16.13.1","react-moment": "^0.9.7","react-redux": "^7.2.0","react-router-dom": "^5.2.0","react-scripts": "0.9.5","redux": "^4.0.5","redux-devtools-extension": "^2.13.8","redux-thunk": "^2.3.0","uuid": "^8.2.0"
},"devDependencies": {},"scripts": {
"start": "react-scripts start","build": "react-scripts build","test": "react-scripts test --env=jsdom","eject": "react-scripts eject"
},"proxy": "http://localhost:5000"
}
我从此package安装了此solution,但仍然遇到相同的错误。我不知道Uglify js怎么了
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。