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
Error: Failed to load url /_build/src/util/styling/transitionGroupStyles.ts (resolved id: /_build/src/util/styling/transitionGroupStyles.ts) in /Users/james/code/lexi/apps/web/src/components/organisms/Modal/Modal.css.ts. Does the file exist?
at loadAndTransform (file:///Users/james/code/lexi/node_modules/.pnpm/vite@4.5.0_@types+node@20.10.5/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:55015:21)
at async getViteModuleNode (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:54:4)
at async add_by_url (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:86:16)
at async Promise.all (index 3)
at async findDeps (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:112:2)
at async add (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:81:4)
at async add_by_url (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:89:4)
at async Promise.all (index 7)
at async findDeps (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:112:2)
at async add (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:81:4)
at async add_by_url (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:89:4)
at async Promise.all (index 3)
at async findDeps (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:112:2)
at async add (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:81:4)
at async add_by_url (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:89:4)
at async Promise.all (index 7)
at async findDeps (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:112:2)
at async add (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:81:4)
at async add_by_url (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:89:4)
at async Promise.all (index 4)
at async findDeps (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:112:2)
at async findDependencies (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:127:5)
at async findStylesInModuleGraph (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/collect-styles.js:156:23)
at async viteAssets (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/dev-server-manifest.js:46:7)
at async Object.assets (file:///Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/manifest/dev-server-manifest.js:217:16)
at async Context.load (/Users/james/code/lexi/node_modules/.pnpm/vinxi@0.1.1_@types+node@20.10.5_preact@10.19.3/node_modules/vinxi/lib/plugins/manifest.js:59:13)
at async Object.load (file:///Users/james/code/lexi/node_modules/.pnpm/vite@4.5.0_@types+node@20.10.5/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:44323:32)
at async loadAndTransform (file:///Users/james/code/lexi/node_modules/.pnpm/vite@4.5.0_@types+node@20.10.5/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:54954:24)
at async viteTransformMiddleware (file:///Users/james/code/lexi/node_modules/.pnpm/vite@4.5.0_@types+node@20.10.5/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:64430:32) {
code: 'ERR_LOAD_URL'
}
Example with shorter stack trace:
Error: Failed to load url /_build/src/styles/utils.css.ts (resolved id: /_build/src/styles/utils.css.ts) in /Users/james/code/lexi/apps/web/src/pages/Feed/components/FeedList/FeedList.css.ts. Does the file exist?
at loadAndTransform (file:///Users/james/code/lexi/node_modules/.pnpm/vite@4.5.0_@types+node@20.10.5/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:55015:21) {
code: 'ERR_LOAD_URL'
}
Expected behavior 🤔
I would like it if the console didn't shout at me.
Steps to reproduce 🕹
Steps:
Init a fresh start project
Add vanilla extract as a dependency and add the plugin to site
Create an example style in a .css.ts file
Reference a .css.ts within a Solid component element for the class.
npm run dev or npm run build && npm run start
Load the page in the browser.
I'll try to make a minimal repro soon unless somebody beats me to it.
Context 🔦
I'm not sure what, if any, effect this has on the build. I have had the build working with the errors being logged (rn things are broken but that's a separate issue). Note the errors only seem to arise once a route is loaded in the browser.
Also worth noting, I've only had this issue since I migrated to the new Vinxi/Nitro version of Start.
I'm assuming it's because .css.ts files are transformed and bundled as CSS at build time. This may be more of a Vinxi issue, but I suspect it's more to do with the new defineConfig() Vite config wrapper from @solidjs/start/config. idk really.
midzdotdev
changed the title
[Bug?]: Vite - Failed to load url
[Bug?]: @vanilla-extract/vite-plugin causes errors in console during transform
Jan 5, 2024
midzdotdev
changed the title
[Bug?]: @vanilla-extract/vite-plugin causes errors in console during transform
[Bug?]: @vanilla-extract/vite-plugin causes errors in console during build's transform
Jan 5, 2024
Duplicates
Latest version
Current behavior 😯
When using Vanilla Extract with the
@vanilla-extract/vite-plugin
as the first in the list of plugins, I receive lots of errors in the console.It seems like I get one error per:
.css.ts
file, or.ts
file from a.css.ts
fileExample with a longer stack trace:
Example with shorter stack trace:
Expected behavior 🤔
I would like it if the console didn't shout at me.
Steps to reproduce 🕹
Steps:
.css.ts
file.css.ts
within a Solid component element for the class.npm run dev
ornpm run build && npm run start
I'll try to make a minimal repro soon unless somebody beats me to it.
Context 🔦
I'm not sure what, if any, effect this has on the build. I have had the build working with the errors being logged (rn things are broken but that's a separate issue). Note the errors only seem to arise once a route is loaded in the browser.
Also worth noting, I've only had this issue since I migrated to the new Vinxi/Nitro version of Start.
I'm assuming it's because
.css.ts
files are transformed and bundled as CSS at build time. This may be more of a Vinxi issue, but I suspect it's more to do with the newdefineConfig()
Vite config wrapper from@solidjs/start/config
. idk really.Your environment 🌎
The text was updated successfully, but these errors were encountered: