Skip to content

TypeError: htmlToDOM is not a function #445

@muhmushtaha

Description

@muhmushtaha

Expected Behavior

import parser from 'html-react-parser';
Use the parser normally and render the html

Actual Behavior

Cause a type error
image

Steps to Reproduce

1- Install the latest version of package 1.4.7
2- Use it normally like this
import parse from 'html-react-parser';
parse('

Hello, World!

');

Environment

  • Version: html-react-parser@1.4.7, react-dom@17.0.2, next@10.0.7
  • Platform: ReactJS, NextJS
  • Browser: Google Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions