Saturday, July 11, 2020

Angular: fallbackLoader option has been deprecated


>PROBLEM

ng serve
...
fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
...
webpack: Compiled successfully.


>SOLUTION

If using angular-cli, do:

npm uninstall -g angular-cli
npm install -g @angular/cli

If desired to perform just local changes, take out the "-g" option.

Sometimes, when a project is recently created using deprecated packages, it is faster to recreate the project using the new env, up to date.


>env
node.js
angular

No comments:

Post a Comment

eclipse: java: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" or Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

  >PROBLEM Using Eclipse, you try to run a simple logging test using "org.slf4j.Logger" like the sample below: package Test; im...