I have noticed that my application produce the following warning during build, but not my minimal repro app. Not exactly sure how to produce this
WARNING in ./node_modules/@microsoft/windows-admin-center-sdk/node_modules/@angular/core/fesm5/core.js 17170:15-36 Critical dependency: the request of a dependency is an expression What is fesm5 and why was it used? My tsconfig is as follows { "compilerOptions": { "baseUrl": "", "declaration": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "noImplicitAny": false, "lib": [ "es2018", "dom" ], "mapRoot": "./", "module": "commonjs", "moduleResolution": "node", "rootDir": "app", "sourceMap": true, "target": "es5", "noEmitOnError": true, "types": ["node"], "typeRoots": [ "node_modules/@types" ] }, "include": [ "./**/*.ts" ] } On Tue, Mar 26, 2019 at 2:33 PM Peter Hsu <xusw...@gmail.com> wrote: > Nope, > Removed the node_modules directory and also force cleared the npm cache. > The problem still exists. > > Still trying to figure out why the token injector use to construct > Navigation's dependency is Router_37 while I only have Router_35 in the > injector. > > On Tue, Mar 26, 2019 at 10:51 AM Sander Elias <sanderel...@gmail.com> > wrote: > >> Hi Peter, >> >> Hmm, so you have trouble reproducing the issue? >> This is just a hunch, but it might just be that you have stale/corrupted >> files in npm_modules. >> do the following. >> >> rm -fr node_modules >> rm yarn.lock >> rm package-lock.json >> npm i # or `yarn` >> >> I had quite a while back some corrupted files in my local cache. While >> unlikely, you might want to clear out your npm/yarn cache too before the >> reinstall. >> >> Try this, and let me know! >> >> Regards >> Sander >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Angular and AngularJS discussion" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/_AnXbUTnpkc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> angular+unsubscr...@googlegroups.com. >> To post to this group, send email to angular@googlegroups.com. >> Visit this group at https://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.