You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5:42:44 PM [vike][Warning] Vite's development server was instantiated while the environment is set to be a production environment by process.env.NODE_ENV === "production" which is contradictory, see https://vike.dev/NODE_ENV
Error: [vike@0.4.182][Bug] You stumbled upon a Vike bug. Go to https://github.com/vikejs/vike/issues/new and copy-paste this error. A maintainer will fix the bug (usually under 24 hours).
at initGlobalContext (file:///tmp/project/node_modules/.pnpm/vike@0.4.182_react-streaming@0.3.43_react-dom@18.3.1_react@18.3.1__react@18.3.1__vite@5.3.5_@types+node@22.1.0_/node_modules/vike/dist/esm/node/runtime/globalContext.js:90:9)
at runPrerender (file:///tmp/project/node_modules/.pnpm/vike@0.4.182_react-streaming@0.3.43_react-dom@18.3.1_react@18.3.1__react@18.3.1__vite@5.3.5_@types+node@22.1.0_/node_modules/vike/dist/esm/node/prerender/runPrerender.js:81:11)
at runPrerenderFromAutoFullBuild (file:///tmp/project/node_modules/.pnpm/vike@0.4.182_react-streaming@0.3.43_react-dom@18.3.1_react@18.3.1__react@18.3.1__vite@5.3.5_@types+node@22.1.0_/node_modules/vike/dist/esm/node/prerender/runPrerender.js:48:9)
at triggerFullBuild (file:///tmp/project/node_modules/.pnpm/vike@0.4.182_react-streaming@0.3.43_react-dom@18.3.1_react@18.3.1__react@18.3.1__vite@5.3.5_@types+node@22.1.0_/node_modules/vike/dist/esm/node/plugin/plugins/autoFullBuild.js:92:9)
at Object.handler (file:///tmp/project/node_modules/.pnpm/vike@0.4.182_react-streaming@0.3.43_react-dom@18.3.1_react@18.3.1__react@18.3.1__vite@5.3.5_@types+node@22.1.0_/node_modules/vike/dist/esm/node/plugin/plugins/autoFullBuild.js:31:25)
at async Promise.all (index 0)
at PluginDriver.hookParallel (file:///tmp/project/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:19702:9)
at file:///tmp/project/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:20699:13
Only happening on vite build. Based on the warning at the beginning, I tried both NODE_ENV=development vite build and NODE_ENV=production vite build, no difference.
Description
Probably related: #1592
Only happening on
vite build
. Based on the warning at the beginning, I tried bothNODE_ENV=development vite build
andNODE_ENV=production vite build
, no difference.vite.config.ts:
Removing
vanillaExtractPlugin
and VE-based styles allows the build to complete. Likewise if I removeprerender: true
.The text was updated successfully, but these errors were encountered: