Skip to content

Typescript import errors #134

@KiranMohan

Description

@KiranMohan

Is the typescript definition correct? Only the below import syntax worked for me.
import * as HTMLReactParser from 'html-react-parser';
But this gives a build error
Cannot invoke an expression whose type lacks a call signature. Type 'typeof import("app/node_modules/html-react-parser/index")' has no compatible call signatures

Expected Behavior

Compilation goes fine without error.
No errors in browser console at runtime.

Actual Behavior

Compilations errors reported.
Runs fine in browser

Steps to Reproduce

see above

Environment

  • Version: 0.10.0
  • Platform: Windows
  • Browser: Chrome 79.0.3945.88

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions