简体   繁体   English

意外标记:名称«Dom7»,预期:punc «;» 何时从 UglifyJs 创建块?

[英]Unexpected token: name «Dom7», expected: punc «;» when create chunk from UglifyJs?

I'm developing a web front project.I run yarn serve is success, I run yarn lint tell me no errors.when I run yarn built it fail,the error is placed below.我正在开发一个 web 前端项目。我运行 yarn serve 是成功的,我运行 yarn lint 告诉我没有错误。当我运行 yarn build 它失败时,错误位于下方。

➜ g3_data git:(master) ✗ yarn build yarn run v1.19.1 $ vue-cli-service build process.env.NODE_ENV:production ➜ g3_data git:(master) ✗ yarn build yarn run v1.19.1 $ vue-cli-service build process.env.NODE_ENV:production

⠧ Building for production... ⠧ 生产建筑...

ERROR Failed to compile with 1 errors 15:39:42 ERROR 编译失败,出现 1 个错误 15:39:42

error错误

js/chunk-627505a2.c88aa55c.js from UglifyJs Unexpected token: name «Dom7», expected: punc «;» js/chunk-627505a2.c88aa55c.js 来自 UglifyJs 意外令牌:名称 «Dom7»,预期:punc «;» [js/chunk-627505a2.c88aa55c.js:134,6] [js/chunk-627505a2.c88aa55c.js:134,6]

ERROR Build failed with errors.错误构建失败并出现错误。 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.错误命令失败,退出代码为 1。有关此命令的文档,请访问https://yarnpkg.com/en/docs/cli/run

I use swiper lib,I change the reference formate from "import Swiper from 'swiper'" to "import Swiper from 'swiper/js/swiper.js'"我使用 swiper lib,我将参考格式从“import Swiper from 'swiper'”更改为“import Swiper from 'swiper/js/swiper.js'”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 意外的标记 punc «(»,从 UglifyJS 创建块时预期的 punc - Unexpected token punc «(», expected punc when creating chunk from UglifyJS UglifyJS的bundle.js中出现意外的令牌名称“ i”,预期的点是“;” - Unexpected token name «i», expected punc «;» Error in bundle.js from UglifyJS 来自 UglifyJs 的 build.js 中的错误意外标记:punc (() - ERROR in build.js from UglifyJs Unexpected token: punc (() 意外的令牌运算符«=»,预期的punc«,» - Unexpected token operator «=», expected punc «,» ExecJS::ProgramError: 运行 rake 资产时出现意外的标记 punc «(»,预期的 punc «:»:在生产中预编译 - ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» when running rake assets:precompile on production 错误:在最小化angularjs应用程序时出现了意外的标记punc«)»,预期的punc«,» - Error: Unexpected token punc «)», expected punc «,» while minifying angularjs app 意外的令牌名称(PubNubAngular)UglifyJs - Unexpected token name (PubNubAngular) UglifyJs SyntaxError:意外的标记:punc()) - SyntaxError: Unexpected token: punc ()) 来自 UglifyJs 的错误:SyntaxError:意外标记:运算符(>) - ERROR from UglifyJs: SyntaxError: Unexpected token: operator (>) Uglify SyntaxError:意外的标记:punc ()) - Uglify SyntaxError: Unexpected token: punc ())
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM