Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VueGallery is not defined #119

Open
aaidenduaban opened this issue Apr 3, 2020 · 0 comments
Open

VueGallery is not defined #119

aaidenduaban opened this issue Apr 3, 2020 · 0 comments

Comments

@aaidenduaban
Copy link

aaidenduaban commented Apr 3, 2020

Could not find a declaration file for module 'vue-gallery'. 'node_modules/vue-gallery/dist/js/vue-gallery.js' implicitly has an 'any' type.
Try npm install @types/vue-gallery if it exists or add a new declaration (.d.ts) file containing declare module 'vue-gallery';ts(7016)

nuxt.config.js
plugins: [{ src: '~/plugins/vue-gallery.client.js'}]

vue-gallery.client.js
import Vue from 'vue'
import VueGallery from 'vue-gallery'

Vue.component('vue-gallery', VueGallery)

index.vue
components: {
'gallery': VueGallery
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant