Python学习从0到1 day26 第三阶段 Spark ⑤ 搜索引擎日志分析

纽二

关注

阅读 13

2024-11-18

背景

react@17 安装 html-react-parser

npm install html-react-parser

运行终端报错信息

ERROR in ./node_modules/html-react-parser/esm/index.mjs 2:0-122 
Can't reexport the named export 'htmlToDOM' from non EcmaScript module (only default export is available)

原因

版本不匹配
在这里插入图片描述
react@17 安装 html-react-parser@3.0.9 亲测匹配

精彩评论(0)

0 0 举报