We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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 root package.json and install if on a 4.x release version
vite
^5.0.0
package.json
For existing Angular CLI workspaces, a few migrations will need to be made.
"type": "module"
.js
.cjs
tailwind.config.js
postcss.config.js
@nx/vite
@analogjs/platform
@nx/vite:build
@analogjs/platform:vite
@nx/vite:dev-server
@analogjs/platform:vite-dev-server
@nx/vite:test
@analogjs/platform:vitest
root
angular.json
"."
""
For existing Nx workspaces with an Analog project
{ "type": "module" }
vite.config.ts
server
export default defineConfig(({ mode }) => { return { // other config server: { fs: { allow: ['.'], }, }, });
The text was updated successfully, but these errors were encountered:
the 1.0 release doesn't have @analogjs/trpc package.
@analogjs/trpc
@brandonroberts mentioned that trpc support will be moved to @spartan-ng/trpc that is maintained by @goetzrobin
@spartan-ng/trpc
currently @spartan-ng/trpc doesn't have any releases and i'm keeping @analogjs/trpc at 0.2.45 in my project for now.
is this the right way to go?
Sorry, something went wrong.
@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 vite to version 5 (it was 4 and was throwing the ESM error)
Good catch. Thanks @BaronVonPerko
No branches or pull requests
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: