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
I am trying to make vanilla-extract work in a Next.js project with Ladle, but for some reason, I keep getting this:
10:32:27 am [vite] Internal server error: Cannot find module '/@fs//home/ashvith/Desktop/pages/src/styles/text.css.ts' Plugin: vite-plugin-vanilla-extract File: /home/ashvith/Desktop/pages/src/styles/text.css.ts at ViteNodeRunnerWithContext._fetchModule (file:///home/ashvith/Desktop/pages/node_modules/vite-node/dist/client.mjs:235:19) at async ViteNodeRunnerWithContext.directRequest (file:///home/ashvith/Desktop/pages/node_modules/vite-node/dist/client.mjs:255:44) at async ViteNodeRunnerWithContext.cachedRequest (file:///home/ashvith/Desktop/pages/node_modules/vite-node/dist/client.mjs:181:11) at async ViteNodeRunnerWithContext.executeFile (file:///home/ashvith/Desktop/pages/node_modules/vite-node/dist/client.mjs:156:10) at async /home/ashvith/Desktop/pages/node_modules/@vanilla-extract/compiler/dist/vanilla-extract-compiler.cjs.dev.js:312:29 at async queueFn (/home/ashvith/Desktop/pages/node_modules/@vanilla-extract/compiler/dist/vanilla-extract-compiler.cjs.dev.js:20:24) at async processQueue (/home/ashvith/Desktop/pages/node_modules/@vanilla-extract/compiler/dist/vanilla-extract-compiler.cjs.dev.js:41:3) (x2)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make vanilla-extract work in a Next.js project with Ladle, but for some reason, I keep getting this:
Here's my
vite.config.ts:Am I supposed to add anything else? I've also created a reproducible example here. The ladle server can be started with
npm run ladle:serve.Beta Was this translation helpful? Give feedback.
All reactions