Skip to content

utils.js:22 Uncaught SyntaxError: Unexpected token '}' at Object../node_modules/@ant-design/icons-vue/es/utils.js #3174

@qiaohong0708

Description

@qiaohong0708
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.2

Environment

win10、谷歌最新版、vue2.6.11

Reproduction link

https://gitee.com/qh0816/antdv.git

Steps to reproduce

下载https://gitee.com/qh0816/antdv.git
cd antdv
npm i
npm run dev

What is expected?

可以按需使用antd of vue

What is actually happening?

浏览器白屏,控制台报错,报错代码为:Uncaught SyntaxError: Unexpected token '}'
at Object../node_modules/@ant-design/icons-vue/es/utils.js (app.js:766)
at webpack_require (app.js:679)
at fn (app.js:89)
at eval (webpack-internal:///./node_modules/@ant-design/icons-vue/es/components/Icon.js:3)
at Object../node_modules/@ant-design/icons-vue/es/components/Icon.js (app.js:750)
at webpack_require (app.js:679)
at fn (app.js:89)
at eval (webpack-internal:///./node_modules/@ant-design/icons-vue/es/index.js:1)
at Object../node_modules/@ant-design/icons-vue/es/index.js (app.js:758)
at webpack_require (app.js:679)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions