请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

这里老是引用不了包

import Antd from ‘ant-design-vue’;
import ‘ant-design-vue/dist/antd.css’;

老是use问题
ncaught TypeError: Cannot read property ‘use’ of undefined
at eval (Trigger.js?88ee:16)
at Module…/node_modules/ant-design-vue/es/vc-trigger/Trigger.js (chunk-vendors.js:5578)
at webpack_require (app.js:854)
at fn (app.js:151)
at eval (index.js?8496:1)
at Module…/node_modules/ant-design-vue/es/vc-trigger/index.js (chunk-vendors.js:5590)
at webpack_require (app.js:854)
at fn (app.js:151)
at eval (SubMenu.js?a3a2:1)
at Module…/node_modules/ant-design-vue/es/vc-menu/SubMenu.js (chunk-vendors.js:4090)

正在回答 回答被采纳积分+3

1回答

提问者 qq_蓝骏毅_04076633 2020-12-11 23:06:16
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';


  createApp(App).use(store).use(router).use(Antd).mount('#app');


0 回复 有任何疑惑可以回复我~
  • 然冬 #1
    antd用2.x的 
    npm i --save ant-design-vue@next
    回复 有任何疑惑可以回复我~ 2020-12-12 00:53:43
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信