Skip to content

vite 2.0引入后启动报错 #3500

@w2819

Description

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

Version

2.0.0-rc.8

Environment

"ant-design-vue": "^2.0.0-rc.8"
"vue": "^3.0.5" 
"vite": "^2.0.0-beta.7"

Reproduction link

https://github.com/miniai/ant-vite-error.git

Steps to reproduce

引入ant后,npm run dev启动,无法正常启动,会报错

What is expected?

正常启动

What is actually happening?

Uncaught SyntaxError: The requested module '/node_modules/@ant-design/icons-vue/DownOutlined.js?v=5.1.9' does not provide an export named 'default'

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