且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

找不到模块:错误:无法解析"fs"

更新时间:2022-06-12 09:37:41

该错误是由于angular-cli不支持节点中的模块,例如"fs"和"path". (问题)

The error is because of angular-cli does not support modules in node like "fs" and "path". (issue)

将以下内容添加到"packages.json"文件中.

Add the following to the "packages.json" file.

"browser": { "fs": false, "path": false, "os": false}

我希望这对某人有帮助.

I hope this helps someone.

谢谢.