quarkus-workshops icon indicating copy to clipboard operation
quarkus-workshops copied to clipboard

Building the angular app fails

Open omasseau opened this issue 2 years ago • 3 comments

I'm getting an error when following these instructions : https://quarkus.io/quarkus-workshops/super-heroes/#_optional_installing_the_web_application_on_quarkus

When executing ./node_modules/.bin/ng build --configuration production --base-href "."

I get :

Node.js version v10.16.3 detected.
The Angular CLI requires a minimum Node.js version of either v12.14 or v14.15.

Please update your Node.js version or visit https://nodejs.org/ for additional instructions.

omasseau avatar Apr 15 '23 13:04 omasseau

Fixed by setting <node.version> to v12.22.12 in pom.xml

omasseau avatar Apr 16 '23 12:04 omasseau

I guess ui-super-heroes/pom.xml in both zip files provided in https://github.com/quarkusio/quarkus-workshops/tree/main/quarkus-workshop-super-heroes/dist should have the node.version upgraded ?

Or maybe those zip files should be regenerated ? Indeed I see that https://github.com/quarkusio/quarkus-workshops/blob/main/quarkus-workshop-super-heroes/super-heroes/ui-super-heroes/pom.xml has been updated and is not aligned with the one provided in the zip files :)

omasseau avatar Apr 16 '23 13:04 omasseau

Thanks for reporting, and for looking into it! I think #227 should fix the staleness in the zip files by regenerating them every time we change the code.

I'm planning to switch to using Quinoa for the node parts, which should fix any lingering node issues, and reduce the complexity.

holly-cummins avatar May 18 '23 09:05 holly-cummins