Closed tmastalirsch-tlv closed 7 months ago
So I see here, that the @analogjs/platform:preset
is expecting for @nx/angular:init
to install @angular/core
into the package.json
but that is no longer the case.
We moved that behavior into our application/library generators so that nx add @nx/angular
would be more minimal.
Perhaps rather than relying on @nx/angular
to add the version, Analog could handle installing @angular/core
with whichever version is supported. This will give Analog more control over the version of @angular/core
which is installed so there should be no need to check it afterwards.
To debug what is going on, I am running nx g @analogjs/platform:preset --verbose
in the workspace which is created.
This is resolved in release 0.2.36
. The command below works successfully with Nx 18
npx create-nx-workspace@latest --preset @analogjs/platform@latest --analogAppName analog-app
Please provide the environment you discovered this bug in.
nx workspace version: v18.0.3 node version: v18.14.0
Which area/package is the issue in?
create-analog
Description
Getting an error by create a new nx workspace with analogjs/platform as preset with below command:
npx create-nx-workspace@latest --preset=@analogjs/platform
. Latest Version for the workspace is v18.0.3 and node version is v18.14.0.Please provide the exception or error you saw
Other information
No response
I would be willing to submit a PR to fix this issue