LighterChu
LighterChu
NNuxt
Created by LighterChu on 5/22/2024 in #❓・help
Adding npm packages to Nuxt3
I have been tryin to get this npm package to work in my project. How ever I am not sure how to import it properly. My background is React and I have only just started using Nuxt. I have added this
import VideoPlayer from 'nuxt-video-player'

require('nuxt-video-player/src/assets/css/main.css')

components: {
VideoPlayer
}
import VideoPlayer from 'nuxt-video-player'

require('nuxt-video-player/src/assets/css/main.css')

components: {
VideoPlayer
}
How ever its saying that its not pulling from the package.json. So I dont know if I need to add it to the plugins folder or what.
2 replies