-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AnalogJS 1.0 migration guide #809
Comments
the 1.0 release doesn't have @brandonroberts mentioned that trpc support will be moved to currently is this the right way to go? |
@nckirik yes, that's correct. It should still work the same as before as an independent package |
Just to note, I needed to also update my |
Good catch. Thanks @BaronVonPerko |
@brandonroberts I can look into this. |
In the 1.0 release, the Analog Vite plugins will be published as ESM-only.
Package updates
Update
vite
to^5.0.0
in the rootpackage.json
and install if on a 4.x release versionFor existing Angular CLI workspaces, a few migrations will need to be made.
"type": "module"
to the root package.json.js
files to.cjs
, such astailwind.config.js
andpostcss.config.js
@nx/vite
to use@analogjs/platform
equivalents.@nx/vite:build
->@analogjs/platform:vite
@nx/vite:dev-server
->@analogjs/platform:vite-dev-server
@nx/vite:test
->@analogjs/platform:vitest
root
property in theangular.json
to be"."
instead of""
For existing Nx workspaces with an Analog project
package.json
in the project root that includes{ "type": "module" }
so Vite resolves it as ESMvite.config.ts
, add a config for file serving to theserver
configurationThe text was updated successfully, but these errors were encountered: