简体   繁体   English

Angular 9 警告 typescript.js

[英]Angular 9 Warning typescript.js

After start application, i have warning启动应用程序后,我有警告

WARNING in ./node_modules/typescript/lib/typescript.js 5123:41-60
Critical dependency: the request of a dependency is an expression

Try altering webpack.dev.config.js.尝试更改 webpack.dev.config.js。

new webpack.ContextReplacementPlugin(
            /angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
            path.resolve(__dirname, 'doesnotexist/')
)

or minimally,或最低限度,

new webpack.ContextReplacementPlugin( /(.+)?angular(\\|\/)core(.+)?/, root('./src'), {} )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Angular2-Typescript.js文件部署 - Angular2 - Typescript.js Files Deployment Angular2应用程序初始加载问题。 typescript.js文件为4.75MB - Angular2 Application Initial load issue. typescript.js file is 4.75MB angular aot build 显示 node_module typescript.js 中未定义错误的类型 - angular aot build showing type of undefined errors in node_module typescript.js 将js转换成typescript转换成angular 8 - convert js into typescript into angular 8 Angular/Typescript - 收到循环依赖的警告 - Angular/Typescript - Getting Warning for Circular dependency 更新Angular 6到7 - 依赖性警告和打字稿错误 - Update Angular 6 to 7 - dependency warning and typescript error 如何在Angular 2 Typescript的Webclipse中自定义格式警告? - How to customize formatting warning in Webclipse for Angular 2 Typescript? 包括Concatenated Typescript JS outFile - Angular 2 + Typescript - Including Concatenated Typescript JS outFile - Angular 2 + Typescript 打字稿:使用 ng-packagr 编译 Angular 9 项目时出现命名空间冲突警告 - Typescript: conflicting namespaces warning on Angular 9 project compilation with ng-packagr Angular 4应用程序中的fabric.js产生警告 - fabric.js in Angular 4 application produces warning
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM