Skip to content

feat!: migrate to Vite 6 environment API #3824

feat!: migrate to Vite 6 environment API

feat!: migrate to Vite 6 environment API #3824

Triggered via pull request January 23, 2025 05:44
Status Failure
Total duration 1m 46s
Artifacts

ci.yml

on: pull_request
test
59s
test
test-react-server-basic
47s
test-react-server-basic
test-react-server-basic-swc
56s
test-react-server-basic-swc
test-react-server-others
52s
test-react-server-others
test-react-server-package
1m 5s
test-react-server-package
test-vite-node-miniflare
1m 6s
test-vite-node-miniflare
test-vite-glob-routes
1m 37s
test-vite-glob-routes
test-pre-bundle-new-url
55s
test-pre-bundle-new-url
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 8 warnings
test-react-server-basic
Process completed with exit code 1.
e2e/server-only-client-only.test.ts > server only - success: packages/react-server/e2e/server-only-client-only.test.ts#L13
AssertionError: expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ e2e/server-only-client-only.test.ts:13:23
e2e/server-only-client-only.test.ts > server only - error: packages/react-server/e2e/server-only-client-only.test.ts#L22
AssertionError: expected '\u001b[31mx\u001b[39m Build failed in…' to contain '\'server-only\' is included in client…' - Expected + Received - 'server-only' is included in client build + x Build failed in 134ms + error during build: + [vitePluginReactServer:build] Invalid environment name "react-server". Environment names must only contain alphanumeric characters and "$", "_". + at new PartialEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:16952:13) + at new BaseEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:17030:5) + at new BuildEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:51501:5) + at Object.createEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:50801:44) + at setupEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:51551:45) + at createBuilder (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:51587:13) + at async Object.buildStart (file:///home/runner/work/vite-plugins/vite-plugins/packages/react-server/dist/plugin/index.js:1002:25) + at async Promise.all (index 6) + at async PluginDriver.hookParallel (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/rollup@4.28.1/node_modules/rollup/dist/es/shared/node-entry.js:20740:9) + at async file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/rollup@4.28.1/node_modules/rollup/dist/es/shared/node-entry.js:21690:13 + ❯ e2e/server-only-client-only.test.ts:22:25
e2e/server-only-client-only.test.ts > client only - success: packages/react-server/e2e/server-only-client-only.test.ts#L30
AssertionError: expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ e2e/server-only-client-only.test.ts:30:23
e2e/server-only-client-only.test.ts > client only - error: packages/react-server/e2e/server-only-client-only.test.ts#L39
AssertionError: expected '\u001b[31mx\u001b[39m Build failed in…' to contain '\'client-only\' is included in server…' - Expected + Received - 'client-only' is included in server build + x Build failed in 133ms + error during build: + [vitePluginReactServer:build] Invalid environment name "react-server". Environment names must only contain alphanumeric characters and "$", "_". + at new PartialEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:16952:13) + at new BaseEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:17030:5) + at new BuildEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:51501:5) + at Object.createEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:50801:44) + at setupEnvironment (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:51551:45) + at createBuilder (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/vite@6.0.11_@types+node@20.14.10_jiti@1.21.0_terser@5.31.2_tsx@4.16.2/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:51587:13) + at async Object.buildStart (file:///home/runner/work/vite-plugins/vite-plugins/packages/react-server/dist/plugin/index.js:1002:25) + at async Promise.all (index 6) + at async PluginDriver.hookParallel (file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/rollup@4.28.1/node_modules/rollup/dist/es/shared/node-entry.js:20740:9) + at async file:///home/runner/work/vite-plugins/vite-plugins/node_modules/.pnpm/rollup@4.28.1/node_modules/rollup/dist/es/shared/node-entry.js:21690:13 + ❯ e2e/server-only-client-only.test.ts:39:25
test-react-server-others
Process completed with exit code 1.
test-react-server-basic-swc
Process completed with exit code 1.
test-react-server-package
Process completed with exit code 1.
test-react-server-basic
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-react-server-others
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-pre-bundle-new-url
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-react-server-basic-swc
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-react-server-package
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-vite-node-miniflare
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-vite-glob-routes
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636