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

Cannot find module #11

Open
nonoumasy opened this issue May 1, 2021 · 0 comments
Open

Cannot find module #11

nonoumasy opened this issue May 1, 2021 · 0 comments

Comments

@nonoumasy
Copy link

nonoumasy commented May 1, 2021

Error: Cannot find module 'https://www.youtube.com/embed/X-fwtmxrlt0'

getting this error when I try to use a youtube video

I npm installed the library
added this next.config.js

const withVideos = require('next-videos')

module.exports = withVideos({
    assetPrefix: 'https://www.youtube.com',

    webpack(config, options) {
        return config
    }
})

and using this code where the image is the path of the youtube url embed link

<video src={require(image)} />
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