Skip to content

Cannot import ReactYoutube #4

@sonJ9

Description

@sonJ9

I keep getting this error:

Could not find a declaration file for module 'react-youtube-lazy'.
...
Try npm i --save-dev @types/react-youtube-lazy if it exists or add a new declaration (.d.ts) file containing declare module 'react-youtube-lazy';

The recommended solutions don't seem to work either.

This is how I've been trying to use react-youtube-lazy:

npm i react-youtube-lazy --legacy-peer-deps
import ReactYoutube from "react-youtube-lazy";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions