Skip to content

"Deep import "ant-design-vue/es/locale/zh_CN" should be avoided because dependency "ant-design-vue" has been pre-optimized" occurs while importing locale/zh_CN with vite2 #3530

@betterRunner

Description

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

Version

2.0.0-rc.8

Environment

vue: 3.0.5, vite: 2.0.0-beta.25

Reproduction link

Edit on CodeSandbox

Steps to reproduce

the error occurs while starting the project

What is expected?

no error

What is actually happening?

[plugin:vite:import-analysis] Deep import "ant-design-vue/es/locale/zh_CN" should be avoided because dependency "ant-design-vue" has been pre-optimized. Prefer importing directly from the module entry:

import { ... } from "ant-design-vue"

image

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