Question about next-ui when used in vue


杨 超元 <sanshengxia@...>
 

 

I am trying to use next-ui in a vue-cli + webpack framework,
and when i tried to import( import nx from 'next-ui' ) nx after installing with npm, getting below error, how to solve it?

TypeError: Cannot read property 'Collection' of undefined
    at eval (next.js?31dc:2949)
    at eval (next.js?31dc:3881)
    at Object../node_modules/next-ui/js/next.js (109.js:10)
    at __webpack_require__ (app.js:1471)
    at fn (app.js:831)
    at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/netopo/topoDetail.vue?vue&type=script&lang=js&:2)
    at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/netopo/topoDetail.vue?vue&type=script&lang=js& (88.js:11)
    at __webpack_require__ (app.js:1471)
    at fn (app.js:831)
    at eval (topoDetail.vue?5e09:1)

 

 

发送自 Windows 10 邮件应用