tailwindcss: loadAndTransform warmup errors with environment CONSOLA_LEVEL=4

Version

@nuxtjs/tailwindcss: 6.8.0 nuxt: 3.7.4

Reproduction Link

I’m sorry it’s not minimal but it’s in my package here for now, I wanted to raise the report first quickly if that’s OK and can whittle it down after. https://github.com/components-web-app/cwa-nuxt-module

Steps to reproduce

run pnpm dev

During startup I get lots of errors now like this:

 Warmup for /App.js failed with: Failed to load url /App.js (resolved id: /App.js) in /PATH/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /App.ts failed with: Failed to load url /App.ts (resolved id: /App.ts) in /PATH/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?

It is seemingly trying to warmup files within a another layer.

You’ll see I have a tailwind implementation for my module (with a prefix) and then the playground which is using tailwind as usual. This is because the module will be creating its own CSS with a prefix and allow the playground (or final application) to use whatever css framework they choose.

What is Expected?

No warmup errors

What is actually happening?

Lots of warmup errors. I think it’s related to this package as it all seems to originate from the tailwind.css - please forgive me if I’m wrong, but any guidance into the right direction would be appreciated. Everything works fine in the project but it’s just annoying error messages. The full list of warmup errors on every start is:

[1] ⚙ Warmup for /App.js failed with: Failed to load url /App.js (resolved id: /App.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /App.ts failed with: Failed to load url /App.ts (resolved id: /App.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /app.js failed with: Failed to load url /app.js (resolved id: /app.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /app.ts failed with: Failed to load url /app.ts (resolved id: /app.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /Error.js failed with: Failed to load url /Error.js (resolved id: /Error.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /Error.ts failed with: Failed to load url /Error.ts (resolved id: /Error.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /error.js failed with: Failed to load url /error.js (resolved id: /error.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /error.ts failed with: Failed to load url /error.ts (resolved id: /error.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /Error.vue failed with: Failed to load url /Error.vue (resolved id: /Error.vue) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /error.vue failed with: Failed to load url /error.vue (resolved id: /error.vue) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /app.config.js failed with: Failed to load url /app.config.js (resolved id: /app.config.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /app.config.ts failed with: Failed to load url /app.config.ts (resolved id: /app.config.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/App.ts failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/App.ts (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/App.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/App.js failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/App.js (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/App.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.js failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.js (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/app.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.ts failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.ts (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/app.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/App.vue failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/App.vue (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/App.vue) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.vue failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.vue (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/app.vue) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/Error.js failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/Error.js (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/Error.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/Error.ts failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/Error.ts (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/Error.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/error.js failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/error.js (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/error.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/error.ts failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/error.ts (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/error.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/Error.vue failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/Error.vue (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/Error.vue) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/error.vue failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/error.vue (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/error.vue) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.config.js failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.config.js (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/app.config.js) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)
[1] ⚙ Warmup for /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.config.ts failed with: Failed to load url /@fs/[PATH]/cwa-nuxt-3-module/src/layer/app.config.ts (resolved id: /[PATH]/cwa-nuxt-3-module/src/layer/app.config.ts) in /[PATH]/cwa-nuxt-3-module/playground/assets/css/tailwind.css. Does the file exist?
[1] 
[1]   at loadAndTransform (node_modules/.pnpm/vite@4.4.9_@types+node@20.7.1_sass@1.68.0/node_modules/vite/dist/node/chunks/dep-df561101.js:54939:21)

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 18 (1 by maintainers)

Most upvoted comments

You’re quite right… this is really great to catch - thank you very much. This exposes an issue now and it’ll need to be investigated further.

The above branch is as minimal reproduction as I can provide I think - I can’t really work out what is triggering the errors. But it’s literally just the playground running now with this module

Running pnpm dev will show up all the warmup errors.

https://github.com/components-web-app/cwa-nuxt-module/tree/bug/loadAndTransform