Skip to content
This repository was archived by the owner on Sep 11, 2021. It is now read-only.
This repository was archived by the owner on Sep 11, 2021. It is now read-only.

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

@Sky-Young

Description

@Sky-Young

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions