Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react 16 #163

Open
xiaoxielnino opened this issue Aug 9, 2019 · 1 comment
Open

react 16 #163

xiaoxielnino opened this issue Aug 9, 2019 · 1 comment

Comments

@xiaoxielnino
Copy link

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",

@Daniel15
Copy link
Member

Daniel15 commented Aug 9, 2019

I don't think I'll have time to look into this... Would you like to send a pull request to update it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants