-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add instructions for Nuxt #17
Comments
Hello, in your items object you must link your item image with src and thumbnail
|
Hello and thank you for your contribution. I did not tried this package with Nuxt, and I'm not familiar with this tool so I don't know what instruction to write. I will try to test it with Nuxt soon! |
Thanks. I have got it working with Nuxt, although my initial questions still stand. |
@danchristian Could you share an example? I am getting this error: "Cannot use import statement outside a module". |
@retroriff I fixed this by adding: |
@K-Cyganiak That worked, thank you! |
Trying to get this working with Nuxt. So far I have:
plugins/vue-picture-swipe.js
Do I also need a
Vue.use(VuePictureSwipe)
in this file?nuxt.config.js
components/gallery.vue
As it's registered as a Nuxt plugin I don't have to
import VuePictureSwipe from 'vue-picture-swipe'
in the component.I had to use the
no-ssr
tag otherwise I was getting:I'm not 100% why I have to use this as well as setting
ssr: false
in thenuxt.config.js
file?Any help would be great and hopefully the instructions can then be updated to include Nuxt usage?
The text was updated successfully, but these errors were encountered: