You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warning-System.Import() is deprecated. Use Import() instead #23426
I am trying to migrate my demos of Angular 5 from Webpack 3 to Webpack 4. Everything works fine but after the dev/prod build, I am getting two warnings.
The link below says that to disable the warning you have to use Rule.parser.system: true. But I am not able to think how to use this syntax.
•Syntax ◦webpackInclude and webpackExclude are supported by the magic comment for import(). They allow to filter files when using a dynamic expression.
◦[new] Using System.import() now emits a warning ◾You can disable the warning with Rule.parser.system: true
◾You can disable System.import with Rule.parser.system: false
Activity
trotyl commentedon Apr 18, 2018
Duplicate of #21560
pkrd commentedon Apr 18, 2018
I have gone through all the posts. But still not able to figure out the solution for the warnings. Need some help on the same!
pkrd commentedon Apr 18, 2018
How do you apply this syntax -
•Syntax ◦webpackInclude and webpackExclude are supported by the magic comment for import(). They allow to filter files when using a dynamic expression.
◦[new] Using System.import() now emits a warning ◾You can disable the warning with Rule.parser.system: true
◾You can disable System.import with Rule.parser.system: false
trotyl commentedon Apr 18, 2018
Please just ignore that warning for now.
pkrd commentedon Apr 18, 2018
Okay! Thank you for your help! But just one question. If I demonstrate the same to client, can I say that these warnings will be fixed in future?
vicb commentedon Apr 20, 2018
closing as duplicate
gudapraveenkumar commentedon Nov 8, 2018
Could you tell where the changes needs to be done?
ermarkar commentedon Dec 24, 2018
To hide this warning put this code in webpack config
module:{[rules[//here]]}angular-automatic-lock-bot commentedon Sep 14, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.