此源的 Angular 12 内容和地图不可用(仅支持 size())

Оле*_*кий 5 source-maps webpack angular

将我的 Angular 版本升级到最新版本后,出现错误:

Content and Map of this Source is not available (only size() is supported)
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激,因为有关此问题的信息并不多。

Erf*_*fan 1

我通过安装“source-map-support”npm 包解决了这个问题,如下所示:

npm install source-map-support
Run Code Online (Sandbox Code Playgroud)

查看此链接

  • 其他用户发布的解决方案是删除项目目录中找到的 .angular 文件夹。运行“npm install”,然后运行“ngserve”。这是该帖子的链接 /sf/answers/4941866961/ (3认同)