更新时间: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.
谢谢.