NeXt-UI / next-tutorials

Get Started with NeXt UI Toolkit
Eclipse Public License 1.0
91 stars 47 forks source link

How to import next-ui in a vue Application #8

Open Sky-Young opened 5 years ago

Sky-Young commented 5 years ago

Hi Team: 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

app.js:1458 TypeError: Cannot read property 'Collection' of undefined at eval (next.js?5417:2949) at eval (next.js?5417:3881) at Object../node_modules/_next-ui@0.9.0@next-ui/js/next.js (10.js:21) at webpack_require (app.js:1366) at fn (app.js:768) at eval (selector.js?type=script&index=0!./src/views/echarts/TopoDemo.vue:1) at Object../node_modules/_babel-loader@7.1.5@babel-loader/lib/index.js!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/views/echarts/TopoDemo.vue (10.js:7) at webpack_require (app.js:1366) at fn (app.js:768) at eval (TopoDemo.vue?1583:1)

CalvinMau commented 5 years ago

@Sky-Young Is your problem solved?

Sky-Young commented 5 years ago

@Sky-Young Is your problem solved?

No, I'm using visjs now.