OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

Build warning about extractCss being deprecated #392

Closed smalers closed 3 years ago

smalers commented 3 years ago

When doing the build to distribute the Poudre Basin Information to the cloud a warning is printed:

[INFO] Start running:  ng build --prod=true --aot=true --baseHref=. --extractCss=true --namedChunks=false --outputHashing=all --sourceMap=false
Option "extractCss" is deprecated: Deprecated since version 11.0. No longer required to disable CSS extraction for HMR.

I'd like to run ng --version to check the version and set the command line appropriately. However, when I run ng --version I get the following. So what is the version 11.0 mentioned above? Both Angular and node versions are less than 11, based on the following.


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 7.3.5
Node: 10.15.3
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.5
@angular-devkit/core         7.3.5
@angular-devkit/schematics   7.3.5
@schematics/angular          7.3.5
@schematics/update           0.13.5
rxjs                         6.3.3
typescript                   3.2.4
Nightsphere commented 3 years ago

I would bet the farm you ran ng --version outside of the InfoMapper project, and it found and displayed your global installation version. Running the command again at least in the infomapper/ folder should show you the version you're looking for.

smalers commented 3 years ago

This is correct. When I drill down deeper I see it is version 11. I will adjust the script to make sure the version is determined in an appropriate folder. I'm closing this issue.