react-magic icon indicating copy to clipboard operation
react-magic copied to clipboard

react 16

Open xiaoxielnino opened this issue 6 years ago • 1 comments

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

xiaoxielnino avatar Aug 09 '19 03:08 xiaoxielnino

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

Daniel15 avatar Aug 09 '19 06:08 Daniel15