Skip to content

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

@nam-hle

Description

@nam-hle

Expected Behavior

No compile error

Actual Behavior

Type 'typeof import("/project/node_modules/.pnpm/html-react-parser@5.2.5_@types[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

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions