Skip to content

react 16 #163

@xiaoxielnino

Description

@xiaoxielnino

hello, it seems some error when use with react 16. How can I fix this issue?

my useage:
import HtmlToJsx from "htmltojsx";

and the following error occured:

./node_modules/htmltojsx/src/htmltojsx.js
Module not found: Can't resolve 'react-dom/lib/HTMLDOMPropertyConfig' in '/Users/chenguanxi/Netease/CloudMusic/transform/node_modules/htmltojsx/src'

These dependencies were not found:

  • react-dom/lib/HTMLDOMPropertyConfig in ./node_modules/htmltojsx/src/htmltojsx.js
  • react-dom/lib/SVGDOMPropertyConfig in ./node_modules/htmltojsx/src/htmltojsx.js

To install them, you can run: npm install --save react-dom/lib/HTMLDOMPropertyConfig react-dom/lib/SVGDOMPropertyConfig

my react version:
"react": "16.8.6",
"react-dom": "16.8.6",
"htmltojsx": "^0.3.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions