We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码打包后,报错 xx.confirm is not function
vite 配置: import Components from 'unplugin-vue-components/vite' import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers' plugins: [ ... Components({ resolvers: [AntDesignVueResolver({ resolveIcons: true })], }),
],
vue文件配置 import {Modal} from 'ant-design-vue'
在本地运行没问题,打包部署后 报错 xx.confirm is not function 是什么原因 ?
"ant-design-vue": "^3.2.15", "unplugin-vue-components": "^0.22.9",
浏览器
yarn
The text was updated successfully, but these errors were encountered:
当换成 import Modal from 'ant-design-vue/lib/modal' 这种引用方式打包后就正确识别Modal.confirm
Sorry, something went wrong.
No branches or pull requests
Describe the bug
代码打包后,报错 xx.confirm is not function
vite 配置:
import Components from 'unplugin-vue-components/vite'
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
plugins: [
...
Components({
resolvers: [AntDesignVueResolver({ resolveIcons: true })],
}),
],
vue文件配置
import {Modal} from 'ant-design-vue'
在本地运行没问题,打包部署后 报错 xx.confirm is not function
是什么原因 ?
Reproduction
"ant-design-vue": "^3.2.15", "unplugin-vue-components": "^0.22.9",
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: