[英]polyfills.ts does not get created with ng new <project> with the angular cli
I am working through some examples and learning angular.我正在研究一些例子并学习角度。 When a new project is created with the angular cli polyfills.ts is not generated.
当使用角度 cli 创建新项目时,不会生成 polyfills.ts。 Has anyone else ran into this issue?
还有其他人遇到过这个问题吗? Here is the generated file structure.
这是生成的文件结构。
generated file structure生成的文件结构
I have tried manually adding a polyfills.ts file to the src folder but that still does not seem to do the trick.我曾尝试手动将 polyfills.ts 文件添加到 src 文件夹,但这似乎仍然无法解决问题。
Since version 15 polyfills.ts is not generated and it is moved directly into angular.json.由于版本 15 polyfills.ts 没有生成,它直接移动到 angular.json 中。 So you don't have to add it.
所以你不必添加它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.