Skip to content

Error when using "react-linkify" in a Next.js app #120

@ossamax

Description

@ossamax

I am encountering an error when using the "react-linkify" library in my Next.js app. When I run npm run prod, I see the following error message:

"Imported via "react-linkify" from file 'C:/Users/....' with packageId '@types/react-linkify/index.d.ts@1.0.1'"

I have tried the following to resolve the issue:

  • Upgrading to the latest version of "react-linkify" (v1.0.0-alpha.5)
  • Adding "typeRoots": ["./node_modules/@types"] to my tsconfig.json file
  • Removing the "exclude" property from my tsconfig.json file

However, none of these solutions have worked. I am using TypeScript v4.4.4 and Next.js v12.1.0.

Can you please provide any guidance on how to resolve this issue? Thank you!

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