How to ignore typescript errors with webpack?

a 夏天 提交于 2021-01-28 10:40:39

问题


My team has been using Angular1 and gulp/systemJS/jspm for several years now. We have been trying to use more Angular2-like features with ngforward (and TypeScript). I've been trying to slowly begin the transition to webpack for our team, but I'm getting a ton of TypeScript compile errors when I try to build. Probably around 1,000, or something crazy like that. They're easy to resolve; errors like not writing "import angular from 'angular'". So, eventually, we hope to go back and fix all of these.

With our current build system, despite these errors, we can run our code without a problem. To follow the previous example, Angular might be exposed as a global and we ignored the Angular import in certain files (unfortunately). Is there any way for Webpack to be able to compile our files while we're in the process of fixing them?

来源:https://stackoverflow.com/questions/51433442/how-to-ignore-typescript-errors-with-webpack

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