Skip to content

Typescript: Cannot find type definition file '....'  #168

@dim0147

Description

@dim0147

Describe the bug
Hi, I'm using typescript, I had installed package @types/@ffmpeg/ffmpeg but when to compile it always shows the error like:

Cannot find type definition file for 'compat'.
  The file is in the program because:
    Entry point for implicit type library 'compat'

When I go to node_modules/@type/combat declare index.d.ts file it's run fine, but then other libraries such as ffbuild, fftools,libavcodec... continue so the errors, those files I see write in C languages and don't have index.d.ts file, so how to fix this?

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'create-react-app'
  2. Install 'npm install @ffmpeg/ffmpeg @types/@ffmpeg/ffmpeg'
  3. Write some code and start compile

Expected behavior
Error about Cannot find type definition file for

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions