Angular5 :polyfills.ts & \\main.ts is missing from the TypeScript compilation

冷暖自知 提交于 2019-12-03 23:25:55

Found the solution. The problem is because I was in a symbolic link directory ($HOME/dev -> d:\dev\ ) Move to the original directory (d:\dev) and run your commands and it works.

Source: https://github.com/angular/angular-cli/issues/9909

It's possibly because you're using an absolute path.

Try changing from:

"/src/main.ts",

to

"src/main.ts",

(Or possibly just "main.ts")

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!