0

Hello im trying to add flipbook-vue to my Nuxt application but im getting weird error that i cant even import it.

Here is reproduction: https://stackblitz.com/edit/nuxt-starter-playground-gckgi7?file=plugins%2Fflipbook.js

import Flipbook from 'flipbook-vue/vue2' gives this error:

enter image description here

1haker
  • 124
  • 13
  • Try that one: https://stackoverflow.com/a/69874645/8816585 and that one: https://github.com/ts1/flipbook-vue/issues/2#issuecomment-513428916 – kissu Jan 18 '23 at 22:51
  • 1
    @kissu Thank you for your help, above answers didn't work since this package change location of its vue2 version. I added answer how it should be imported. – 1haker Jan 19 '23 at 09:00

1 Answers1

0

I have to import it like this to make it work:

import Flipbook from 'flipbook-vue/dist/vue2/flipbook.mjs

1haker
  • 124
  • 13