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

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

Open
ossamax opened this issue May 9, 2023 · 0 comments
Open

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

ossamax opened this issue May 9, 2023 · 0 comments

Comments

@ossamax
Copy link

ossamax commented May 9, 2023

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!

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