Skip to content

use nitro v2 for stability with solid-start - #251

Merged
birkskyum merged 1 commit into
solidjs:mainfrom
birkskyum:nitro-v2
Mar 10, 2026
Merged

use nitro v2 for stability with solid-start#251
birkskyum merged 1 commit into
solidjs:mainfrom
birkskyum:nitro-v2

Conversation

@birkskyum

@birkskyum birkskyum commented Mar 6, 2026

Copy link
Copy Markdown
Member

@birkskyum birkskyum changed the title use nitro v2 for stability use nitro v2 for stability with solid-start Mar 6, 2026
@birkskyum
birkskyum merged commit 2752129 into solidjs:main Mar 10, 2026
brenelz added a commit to brenelz/templates that referenced this pull request Jul 15, 2026
…tro v3

All templates move from the nitro v2 pin (@solidjs/vite-plugin-nitro-2, PR solidjs#251)
to the nitro v3 vite plugin.

with-unocss switches UnoCSS to per-module mode: the default global mode still
can't find vite:css-post across Vite environments (unocss/unocss#4990), which
made nitro v3 builds ship an unreplaced CSS placeholder (solidjs#250). per-module mode
doesn't depend on vite:css-post and works with the Environment API.

Verified per template: pnpm install, vite build, serve .output/server/index.mjs,
HTTP 200 + non-placeholder CSS assets (with-vitest: tests pass; with-authjs:
verified with env vars from .env.example; with-drizzle: verified with
better-sqlite3 bindings built and drizzle-kit push).

Not changed: with-solidbase (fails to build on main even with its committed
lockfile - '@kobalte/solidbase' pkg.pr.new snapshot can't resolve 'resolve').
with-tanstack-router is updated but 500s at SSR with any fresh lockfile
(also broken on main) - @tanstack/solid-router drift needs a separate fix.
brenelz added a commit to brenelz/templates that referenced this pull request Jul 15, 2026
…tro v3

All templates move from the nitro v2 pin (@solidjs/vite-plugin-nitro-2, PR solidjs#251)
to the nitro v3 vite plugin.

with-unocss switches UnoCSS to per-module mode: the default global mode still
can't find vite:css-post across Vite environments (unocss/unocss#4990), which
made nitro v3 builds ship an unreplaced CSS placeholder (solidjs#250). per-module mode
doesn't depend on vite:css-post and works with the Environment API.

with-solidbase gains a pnpm-workspace.yaml with a packageExtensions entry that
adds the 'resolve' dependency to @kobalte/solidbase: the pkg.pr.new snapshot
imports it without declaring it, which breaks pnpm's strict node_modules
(template previously failed to build even from its committed lockfile).
Remove the extension once solidbase declares the dependency upstream.

Verified per template: pnpm install, vite build, serve .output/server/index.mjs,
HTTP 200 + non-placeholder CSS assets (with-vitest: tests pass; with-authjs:
verified with env vars from .env.example; with-drizzle: verified with
better-sqlite3 bindings built and drizzle-kit push; with-solidbase: prerendered
pages render with full theme).

Known issue: with-tanstack-router is updated and builds, but 500s at SSR with
any fresh lockfile (also broken on main) - @tanstack/solid-router drift needs
a separate fix.
brenelz added a commit to brenelz/templates that referenced this pull request Jul 15, 2026
…ite 8

Version updates across all templates:
- @solidjs/start ^2.0.0-beta.0 (caret picks up future betas and 2.x stable)
- nitro ^3.0.260610-beta, replacing the nitro v2 pin from PR solidjs#251
  (@solidjs/vite-plugin-nitro-2); the caret picks up nitro 3.x stable
- vite ^8.0.0
- @solidjs/router ^0.16.2 (except with-solidbase: solidbase depends on
  ^0.15.3, and mixing 0.15/0.16 yields two router instances and breaks SSR)
- engines.node >=24

with-unocss switches UnoCSS to per-module mode: the default global mode
can't find vite:css-post across Vite environments (unocss/unocss#4990),
which made nitro v3 builds ship an unreplaced CSS placeholder (solidjs#250).
per-module mode doesn't depend on vite:css-post and works with the
Environment API.

with-solidbase gains a pnpm-workspace.yaml with a packageExtensions entry
that adds the 'resolve' dependency to @kobalte/solidbase: the pkg.pr.new
snapshot imports it without declaring it, which breaks pnpm's strict
node_modules (template previously failed to build even from its committed
lockfile). Remove the extension once solidbase declares the dependency.

Verified per template (vite 8.1.4, node 25): pnpm install, vite build,
serve .output/server/index.mjs, HTTP 200 + non-placeholder CSS assets
(with-vitest: tests pass; with-authjs: verified with env vars from
.env.example; with-drizzle: verified with better-sqlite3 bindings built
and drizzle-kit push; with-solidbase: prerendered pages render with full
theme).

Known issue: with-tanstack-router is updated and builds, but 500s at SSR
with any fresh lockfile (also broken on main) - @tanstack/solid-router
drift needs a separate fix.
birkskyum pushed a commit that referenced this pull request Jul 15, 2026
…ite 8 (#262)

Version updates across all templates:
- @solidjs/start ^2.0.0-beta.0 (caret picks up future betas and 2.x stable)
- nitro ^3.0.260610-beta, replacing the nitro v2 pin from PR #251
  (@solidjs/vite-plugin-nitro-2); the caret picks up nitro 3.x stable
- vite ^8.0.0
- @solidjs/router ^0.16.2 (except with-solidbase: solidbase depends on
  ^0.15.3, and mixing 0.15/0.16 yields two router instances and breaks SSR)
- engines.node >=24

with-unocss switches UnoCSS to per-module mode: the default global mode
can't find vite:css-post across Vite environments (unocss/unocss#4990),
which made nitro v3 builds ship an unreplaced CSS placeholder (#250).
per-module mode doesn't depend on vite:css-post and works with the
Environment API.

with-solidbase gains a pnpm-workspace.yaml with a packageExtensions entry
that adds the 'resolve' dependency to @kobalte/solidbase: the pkg.pr.new
snapshot imports it without declaring it, which breaks pnpm's strict
node_modules (template previously failed to build even from its committed
lockfile). Remove the extension once solidbase declares the dependency.

Verified per template (vite 8.1.4, node 25): pnpm install, vite build,
serve .output/server/index.mjs, HTTP 200 + non-placeholder CSS assets
(with-vitest: tests pass; with-authjs: verified with env vars from
.env.example; with-drizzle: verified with better-sqlite3 bindings built
and drizzle-kit push; with-solidbase: prerendered pages render with full
theme).

Known issue: with-tanstack-router is updated and builds, but 500s at SSR
with any fresh lockfile (also broken on main) - @tanstack/solid-router
drift needs a separate fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

solid-start/with-unocss template build is broken

1 participant