5

For updating Angular 8 to 9, I am following the official document to upgrade.

Which suggests first updating to the latest version of angular 8, like:

ng update @angular/core@8 @angular/cli@8

However, I am getting three warnings (all the same):

npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {"node":"<8.10.0"} (current: {"node":"12.16.1","npm":"6.13.4"})
npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\watchpack\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN ngx-multi-window@0.3.2 requires a peer of @angular/common@^6.0.0-rc.0 || ^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-multi-window@0.3.2 requires a peer of @angular/core@^6.0.0-rc.0 || ^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 369 packages from 99 contributors, removed 29 packages, updated 172 packages, moved 2 packages and audited 1664 packages in 109.259s

31 packages are looking for funding
  run `npm fund` for details

found 873 vulnerabilities (639 low, 6 moderate, 227 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details
Two or more projects are using identical roots. Unable to determine project using current working directory. Using default workspace project instead.
Two or more projects are using identical roots. Unable to determine project using current working directory. Using default workspace project instead.
Two or more projects are using identical roots. Unable to determine project using current working directory. Using default workspace project instead.
Top-Master
  • 7,611
  • 5
  • 39
  • 71
Hwang
  • 61
  • 1
  • 4

3 Answers3

9

specify the root property of second project to e2e in angular.json file

change this:

"myproject-e2e": {
  "root": ""
 }

to

"myproject-e2e": {
  "root": "e2e",
Palak Jadav
  • 1,202
  • 1
  • 11
  • 23
2

enter image description here

In my case the following line was underlined and I removed it. It worked for me. If you have it in your project, you can try it..

{  ...
  "styleext": "scss",
   ...
{
azizkale
  • 37
  • 2
  • 6
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 25 '22 at 04:07
  • Rather change `styleext` to `style`. This worked for me. https://stackoverflow.com/a/50619328/10331580 – user Nov 04 '22 at 01:08
0

remove the "styleext": "scss" element on angular.json works for me my ng --version is 13.

Angular CLI: 13.3.6

This problem was solved

ng default workspace project instead.

Two or more projects are using identical roots. Unable to determine project using current working directory. ng default workspace project instead.
Two or more projects are using identical roots. Unable to determine project using current working directory. 
Using default workspace project instead.                                                                     Schematic input does not validate against the Schema: {"prefix":"app","styleext":"scss","name":"/src/app/modu

  Data path "" must NOT have additional properties(styleext).
Ravinath
  • 1,620
  • 1
  • 14
  • 8