首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >我在angular6 cli应用程序的./node_modules/diff2html/src/hoganjs-utils.js中收到错误

我在angular6 cli应用程序的./node_modules/diff2html/src/hoganjs-utils.js中收到错误
EN

Stack Overflow用户
提问于 2018-10-30 00:51:25
回答 1查看 275关注 0票数 1

我在我的angular6项目中包含了diff2html npm包,当我编译它时,我得到:

代码语言:javascript
运行
复制
ERROR in ./node_modules/diff2html/src/hoganjs-utils.js
Module not found: Error: Can't resolve 'path' in 
'C:\codes\XXX\node_modules\diff2html\src'

你知道这是什么原因吗?

我试着添加

代码语言:javascript
运行
复制
    "scripts": [
        "node_modules/diff2html/dist/diff2html.min.js"
     ]

给angular.cli,但那没什么用

EN

回答 1

Stack Overflow用户

发布于 2018-10-30 20:15:06

好了,我找到解决方案了。这解决了我的问题:[https://github.com/rtfpessoa/diff2html/issues/169][1]

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53050250

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档