Adoratorio/hades

Import Issues in Nuxtjs

Opened this issue · 0 comments

@AndreaGottardi @borradaniele How to solve and import it the correct way in NuxtJs?

I am using a NuxtJs App. There is an issue with importing this library. where I used typescript as well. I follow all the step nuxtjs has to import the external library. But it's didn't work for me.
This error I got after import
Screenshot_6

I created a file called Hades.js in the plugin folder and import it this way.

Screenshot_7

then the nuxt.config.js i installed it correctly
Screenshot_8

After that when going to use it my own scroll.ts file like this, I am getting the above error.
Screenshot_9