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
Hi, when I build a Vike application that also has @vanilla-extract/vite-plugin@^4.0.4, I get the following error (including the rest of the logs):
vite v5.2.7 building for production...
transforming (1) virtual:vike:pageConfigValuesAll:client:(!) Experimental optimizeDeps.disabled and deps pre-bundling during build were removed in Vite 5.1.
To disable the deps optimizer, set optimizeDeps.noDiscovery to true and optimizeDeps.include as undefined or empty.
Please remove optimizeDeps.disabled from your config.
Error: [[email protected]][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 isDev1_onConfigureServer (file:///Users/zach.barham/Downloads/reprod-vike-bug/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/utils/isDev.js:20:5)
at configureServer (file:///Users/zach.barham/Downloads/reprod-vike-bug/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/index.js:60:13)
at _createServer (file:///Users/zach.barham/Downloads/reprod-vike-bug/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-C-KAszbv.js:64822:30)
at createViteServer (/Users/zach.barham/Downloads/reprod-vike-bug/node_modules/.pnpm/@[email protected]/node_modules/@vanilla-extract/integration/dist/vanilla-extract-integration.cjs.prod.js:583:18)
Edit: actually, v4.0.4 gives a different error message than ^4.0.5 (but that's an old version so it doesn't matter):
vite v5.2.7 building for production...
(!) Experimental optimizeDeps.disabled and deps pre-bundling during build were removed in Vite 5.1.
To disable the deps optimizer, set optimizeDeps.noDiscovery to true and optimizeDeps.include as undefined or empty.
Please remove optimizeDeps.disabled from your config.
✓ 9 modules transformed.
x Build failed in 55ms
error during build:
Error: [[email protected]][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 getCode (file:///home/alduino/Documents/Projects/reprod-vike-bug/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/getVirtualFileImportUserCode.js:22:5)
at getVirtualFileImportUserCode (file:///home/alduino/Documents/Projects/reprod-vike-bug/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/getVirtualFileImportUserCode.js:15:24)
at Object.load (file:///home/alduino/Documents/Projects/reprod-vike-bug/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/index.js:55:36)
at file:///home/alduino/Documents/Projects/reprod-vike-bug/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19595:40
at PluginDriver.hookFirstAndGetPlugin (file:///home/alduino/Documents/Projects/reprod-vike-bug/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19495:28)
at file:///home/alduino/Documents/Projects/reprod-vike-bug/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18666:33
at Queue.work (file:///home/alduino/Documents/Projects/reprod-vike-bug/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19705:32)
Description
Hi, when I build a Vike application that also has
@vanilla-extract/vite-plugin@^4.0.4
, I get the following error (including the rest of the logs):Looks like they changed some internal build stuff in that release - https://github.com/vanilla-extract-css/vanilla-extract/releases/tag/%40vanilla-extract%2Fvite-plugin%404.0.4
Edit: actually, v4.0.4 gives a different error message than ^4.0.5 (but that's an old version so it doesn't matter):
Minimal reprod: https://github.com/Alduino/reprod-vike-bug
The text was updated successfully, but these errors were encountered: