html-react-parser
html-react-parser copied to clipboard
Type 'typeof import("html-react-parser")' has no call signatures under NodeNext module resolution
Expected Behavior
No compile error
Actual Behavior
Type 'typeof import("/project/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/html-react-parser/lib/index")' has no call signatures.
Steps to Reproduce
Run script ts in this fork from the official stackblitz example:
https://stackblitz.com/edit/html-react-parser-cxtw3a8f?file=package.json&view=editor
Reproducible Demo
Environment
- Version: 5.2.5
- Platform: arm64
- Browser: Any
- OS: MacOS 15.5
Keywords
Hmm it's strange that the app builds without issues but TypeScript throws an error.
Could you try upgrading the typescript dependency to the latest version?
Also, is the only difference between your example and my Stackblitz the module resolution?