Closed abarcenas29 closed 1 year ago
This has been fixed on the main
branch, but you can fix locally by install @analogjs/vite-plugin-angular@0.2.0-alpha.22 in the package.json. A release will go out on Monday to fix new installs
This has been fixed on the
main
branch, but you can fix locally by install @analogjs/vite-plugin-angular@0.2.0-alpha.22 in the package.json. A release will go out on Monday to fix new installs
Good afternoon, thanks for your answer, but i still have this error occured as @abarcenas29 described:
"@analogjs/content": "^0.2.0-beta.2",
"@analogjs/router": "^0.2.0-beta.2"
This has been fixed on the
main
branch, but you can fix locally by install @analogjs/vite-plugin-angular@0.2.0-alpha.22 in the package.json. A release will go out on Monday to fix new installsGood afternoon, thanks for your answer, but i still have this error occured as @abarcenas29 described:
"@analogjs/content": "^0.2.0-beta.2", "@analogjs/router": "^0.2.0-beta.2"
Have you also updated your @analogjs/platform to the same version? This issue has occurred for me with npm resolving the latest
version of the platform packages dependencies. The newest version of the platform package pins the version number and that fixed the issue for me
Because you're on Angular v15, you should match up with the versions here.
thank you all @goetzrobin @brandonroberts ❤️ , my problem solved
@brandonroberts sorry to disturb you but could have a reason for having this error even using the packages' versions of that package.json? Worth noting that even in that file the versions are not matching.
@brandonroberts sorry to disturb you but could have a reason for having this error even using the packages' versions of that package.json? Worth noting that even in that file the versions are not matching.
Sure. There was a change in a dependency we use that changed where the file was located. It's fixed in the 0.2.0 beta versions to reference the new file location. This version works with Angular v16.
We pin the package.json version in the templates for Angular v15, but Yarn installs both versions which causes the error.
This could be fixed for Angular v15 by publishing another version of the @analogjs/platform package that pins to the v15 version of the Vite plugin. I'll look into this soon.
Hope this helps with the confusion and error.
The same error is shown when you start a new project with analog using pnpm
I listed my configuration here #361
The issue with the Angular v15 template has been resolved in the latest release of create-analog
. Choosing angular-v15 will install the correct versions and fixes the missing aot-compilation
error.
Please provide the environment you discovered this bug in.
Processor: M1 Installed RAM: 8.0 GB Node.js: 19.8.1 analog: 0.1.9 Angular version chosen: Angular15
Which area/package is the issue in?
create-analog
Description
Can not run a fresh install of Analog in it's latest version.
Please provide the exception or error you saw
Other information
N/A
I would be willing to submit a PR to fix this issue