Skip to content

TypeScript Error: Cannot find type definition file for 'linkify-it' #29

Description

@keshavagr025

Description
I'm getting this TypeScript compilation error:

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

Solution:
Step 1. Install the package
npm install linkify-it

Step 2. Remove the bad type reference
Open your tsconfig.json and look for something like:
"types": ["linkify-it"]
or
"typeRoots": ["./node_modules/@types", "linkify-it"]

following this steps Guaranteed Solve this issue.

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