-
-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
I've created a fresh vocs project inside my monorepo using bun create vocs (I've also tried out bun create vocs@latest – same problem though).
➜ docs git:(feat/docs) ✗ bun run dev
$ vocs dev
error: ENOENT reading "lib/index.j"
Bun v1.2.2 (Linux arm64)
error: script "dev" exited with code 1
➜ docs git:(feat/docs) ✗ bun run build
$ vocs build
error: ENOENT reading "lib/index.j"
Bun v1.2.2 (Linux arm64)
error: script "build" exited with code 1
➜ docs git:(feat/docs) ✗ bun run preview
$ vocs preview
error: ENOENT reading "lib/index.j"
Bun v1.2.2 (Linux arm64)
error: script "preview" exited with code 1
➜ docs git:(feat/docs) ✗ When trying to execute the vocs executable manually, the vite server spawns up
➜ docs git:(feat/docs) ✗ bun ../node_modules/.bin/vocs
Failed to find Response internal state key
11:58:37 AM [vite] building search index...
[running] [email protected]
➜ Local: http://localhost:5173/
➜ Network: use --host to exposebut errors as soon as I make a request to it
[...]
11:59:21 AM [vite] Pre-transform error: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter') (x150)
11:59:21 AM [vite] Pre-transform error: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter') (x151)
11:59:21 AM [vite] Pre-transform error: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter') (x152)
11:59:21 AM [vite] Error when evaluating SSR module /workspace/node_modules/vocs/_lib/app/index.server.js:
|- TypeError: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter')
at /workspace/node_modules/vocs/_lib/app/styles/index.css.js:2:44
at runInNewContext (unknown)
at <anonymous> (/workspace/node_modules/eval/eval.js:84:12)
at <anonymous> (/workspace/node_modules/@vanilla-extract/integration/dist/vanilla-extract-integration.cjs.dev.js:131:40)
at processVanillaFile (/workspace/node_modules/@vanilla-extract/integration/dist/vanilla-extract-integration.cjs.dev.js:89:34)
at <anonymous> (/workspace/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.dev.js:179:40)
at processTicksAndRejections (native:7:39)
11:59:21 AM [vite] Pre-transform error: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter')
11:59:21 AM [vite] Pre-transform error: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter') (x2)
11:59:21 AM [vite] Pre-transform error: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter') (x3)
11:59:21 AM [vite] Pre-transform error: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter') (x4)
11:59:21 AM [vite] Pre-transform error: Failed to load url /app/index.client.js (resolved id: /app/index.client.js). Does the file exist?
TypeError: undefined is not an object (evaluating 'require('@vanilla-extract/css/adapter').setAdapter')
plugin: "vanilla-extract",
id: "/workspace/node_modules/vocs/_lib/app/styles/index.css.js",
pluginCode: "import './preflight.css.js';\nimport './vars.css.js';\nimport './reset.css.js';\nimport './global.css.js';\nimport './twoslash.css.js';\n ",
loc: {
file: "../../../app/styles/index.css.ts",
line: 3,
column: 22,
},
frame: "1 | import './preflight.css.js';\n2 | import './vars.css.js';\n3 | import './reset.css.js';\n | ^\n4 | import './global.css.js';\n5 | import './twoslash.css.js';",
at /workspace/node_modules/vocs/_lib/app/styles/index.css.js:2:44
Bun v1.2.2 (Linux arm64)I'll see if i can create a minimal reproduction repo.
Are there any knows workarounds until then?
Metadata
Metadata
Assignees
Labels
No labels