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

Remove Deprecated Type Dependency #301

Open
Bro3Simon opened this issue Nov 20, 2024 · 2 comments
Open

Remove Deprecated Type Dependency #301

Bro3Simon opened this issue Nov 20, 2024 · 2 comments

Comments

@Bro3Simon
Copy link

  "dependencies": {
    "@types/dompurify": "^3.0.5",

https://www.npmjs.com/package/@types/dompurify

This deprecated type dependency causes TS to throw an error:
Cannot find type definition file for 'dompurify'. The file is in the program because: Entry point for implicit type library 'dompurify'

This is caused because @types/dompurify doesn't have an index file.
This is documented here: https://devblogs.microsoft.com/typescript/announcing-typescript-5-1-beta/#explicit-typeroots-disables-upward-walks-for-node_modules/@types

Just run npm uninstall @types/dompurify to fix.

@kkomelin
Copy link
Owner

Thanks @Bro3Simon for the suggestion. I'll work on it now

kkomelin added a commit that referenced this issue Nov 24, 2024
@kkomelin
Copy link
Owner

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

2 participants