html-react-parser icon indicating copy to clipboard operation
html-react-parser copied to clipboard

Type 'typeof import("html-react-parser")' has no call signatures under NodeNext module resolution

Open nam-hle opened this issue 2 months ago • 1 comments

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

nam-hle avatar Oct 25 '25 13:10 nam-hle

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?

remarkablemark avatar Oct 25 '25 14:10 remarkablemark