Start mode dev: server component pages fail to serialize (seroval "[object Object] cannot be parsed")
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript, vite
- 領域
- backend, build-system, devtools
調査の方向性
Start with the Vite configuration and the server-component route in src/routes/index.tsx, then reproduce with pnpm dev and curl http://localhost:5173/. Compare the dev SSR module graph with the working vite build && node dist/server/node.js path, focusing on seroval and seroval-plugins externalization and the noExternal workaround. Done means the dev response contains the expected main element without the seroval parse error.
索引モデルが issue の本文から書いたものです。
説明
[Opus-5.5] On behalf of Elies
In SSR start mode with serverFunctions: { components: true }, a file route whose page is a server component renders an empty document under vite dev. The server logs SSR_RENDER_ERROR_CONTAINED with a seroval parse error. The production build of the same app renders the page correctly.
Versions: solid-js and @solidjs/web 2.0.0-rc.13, @solidjs/vite-plugin 3.0.0-next.47, @solidjs/router 2.0.0-next.35, filesystem-routing 0.4.0, vite 8.3.2, seroval and seroval-plugins 1.6.8 (one copy installed), Node 24.18, pnpm 10.32, Linux.
Minimal reproduction:
// vite.config.ts
import { defineConfig } from 'vite';
import solid from '@solidjs/vite-plugin';
import { fileRoutes } from 'filesystem-routing/vite';
export default defineConfig({
plugins: [
solid({ start: { node: true }, ssr: true, serverFunctions: { components: true }, extensions: ['.jsx', '.tsx'] }),
fileRoutes({ serverComponents: true }),
],
});
// src/App.tsx
import { pageRoutes } from 'virtual:file-routes';
import { createRouter } from '@solidjs/router';
import { fileRoutes } from '@solidjs/router/fs';
const Router = createRouter({ routes: fileRoutes(pageRoutes) });
export default function App() {
return <Router>{(props) => props.children}</Router>;
}
// src/routes/index.tsx
export default async function Home() {
'use server';
return () => <main>Hello from a server component</main>;
}
Steps: pnpm dev, then curl http://localhost:5173/.
Expected: a document containing <main>Hello from a server component</main>, as vite build && node dist/server/node.js produces.
Actual: the response body is only <!DOCTYPE html>, and the dev server logs:
[SSR_RENDER_ERROR_CONTAINED] Render error outside any boundary — the request failed: Error: Seroval caught an error during the parsing process.
The value [object Object] of type "object" cannot be parsed/serialized.
cause: SerovalUnsupportedTypeError
at parseObjectPhase2 (seroval/dist/dev/index.js)
at Object.stream (seroval-plugins/dist/dev/web-*.js) <- ReadableStreamPlugin
...
at armDocumentLiveHoles (@solidjs/web/frames/dist/server.dev.js)
The failing call is ctx.serialize("sc:live", new ReadableStream(...)) in armDocumentLiveHoles. ReadableStreamPlugin then fails to parse its READABLE_STREAM_FACTORY reference.
Workaround: inlining seroval in the SSR environment fixes dev:
ssr: { noExternal: ['seroval', 'seroval-plugins'] },
That suggests the dev SSR graph gets two seroval module instances. solid-js and @solidjs/web are added to noExternal, while seroval and seroval-plugins stay external, so the reference registered by one instance isn't found by the other. I haven't confirmed that beyond the workaround.
- 主要言語
- TypeScript
- スター
- 522
- フォーク
- 72
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 31
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
solidjs/solid-vite-plugin のほかの issue
-
Test environment detection doesn't consider Vitest workspaces対応中かも @carloitaben が 43 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
solidjs/solid-vite-plugin#205 · コメント 1 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Catch-all route chunks are named `_...404_-<hash>.js`; the `..` trips path-traversal guards and breaks the lazy preload対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
solidjs/solid-vite-plugin#391 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
solidjs/solid-vite-plugin#390 ·
メンテナーはふだん 1 日以内に返信
-
Start mode: generated entries render without the CSP nonce, and there is no per-request seam to supply one対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
solidjs/solid-vite-plugin#388 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
solidjs/solid-vite-plugin#387 ·
メンテナーはふだん 1 日以内に返信
solidjs/solid-vite-plugin の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/DebateAI#611 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
openzim/mwoffliner#2933 ·
メンテナーはふだん 1 日以内に返信
-
Use the README category name for website links and submissions対応中かも @dajiaohuang が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
birobirobiro/awesome-shadcn-ui#647 ·
メンテナーはふだん 2 日以内に返信
-
Twake Drive picker: closePicker() never destroys the intent (stop() is on the promise returned by start(), not by create())対応中かも @chibenwa が今日担当しました。 オープンclaude
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
linagora/twake-calendar-frontend#1498 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信