xiaoluoboding / vue-smart-widget

🗃️Smart widget is a flexible and extensible content container component for Vue2.x / Vue3.x in Next branch.
https://xiaoluoboding.github.io/vue-smart-widget/
MIT License
185 stars 35 forks source link

Error adding it to main.js #34

Open jggj21 opened 3 years ago

jggj21 commented 3 years ago

I get this error, I execute npm run watch: image

I have in my package.json "vue-smart-widget": "^ 0.6.1",

and main.js

 import { SmartWidget } from 'vue-smart-widget'
Vue.component('SmartWidget', SmartWidget)

or if I use it this way:

import VueSmartWidget from 'vue-smart-widget'
Vue.use(VueSmartWidget)

I receive the error, am I integrating it wrong? I have deleted my node_modulesfolder, then npm i, but the error persists, I have also run npm run cache

It only works for me in this version: vue-smart-widget": "^ 0.4.6