Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load config error on init #3139

Open
moshetanzer opened this issue Jan 18, 2025 · 4 comments
Open

Failed to load config error on init #3139

moshetanzer opened this issue Jan 18, 2025 · 4 comments
Labels
bug Something isn't working triage

Comments

@moshetanzer
Copy link
Collaborator

moshetanzer commented Jan 18, 2025

Environment

  • Operating System: Darwin
  • Node Version: v22.11.0
  • Nuxt Version: 3.15.2
  • CLI Version: 3.20.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: compatibilityDate, devtools, modules
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Version

2.21.0

Reproduction

  1. Create a new nuxt project using cli
  2. install nuxt/ui using cli command npx nuxi@latest module add ui

Description

WARN Failed to load config ./.nuxt/nuxtui-tailwind.config.mjs due to the error below. Skipping.. nuxt:tailwindcss 8:47:34 PM
Cannot find module 'tailwindcss/lib/lib/defaultExtractor.js'
Require stack:

Pretty sure this has got to do with an update in nitro/nuxt i saw recently @danielroe any ideas?

Additional context

No response

Logs

   Require stack:
    - .nuxt/nuxtui-tailwind.config.mjs
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function.resolve (node:internal/modules/helpers:151:19)
    at jitiResolve (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.cjs:1:187220)
    at jitiRequire (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.cjs:1:189288)
    at import (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.cjs:1:199778)
    at .nuxt/nuxtui-tailwind.config.mjs:2:31
    at eval_evalModule (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.cjs:1:196325)
    at node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.cjs:1:194552
    at async Function.import (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.cjs:1:199772)
    at async resolveConfig (node_modules/.pnpm/[email protected][email protected]/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs:343:18)
    at async loadConfig (node_modules/.pnpm/[email protected][email protected]/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs:147:23)
    at async Promise.all (index 3)
    at async loadConfigs (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxtjs/tailwindcss/dist/module.mjs:374:27)
    at async node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxtjs/tailwindcss/dist/module.mjs:420:9
    at async generateApp (node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]__uowpedy6xy2pdmgu2ptesyqdza/node_modules/nuxt/dist/shared/nuxt.BoHAox-C.mjs:6166:5)
    at async _applyPromised (node_modules/.pnpm/[email protected]/node_modules/perfect-debounce/dist/index.mjs:54:10)
@moshetanzer moshetanzer added bug Something isn't working triage labels Jan 18, 2025
@danielroe
Copy link
Member

not sure this is nuxt related

@moshetanzer
Copy link
Collaborator Author

Ok. Thanks @danielroe Though maybe got to do with new nitro pathe updates I have noticed recently.

@danielroe
Copy link
Member

it could be the recent nuxtjs/tailwindcss release: https://github.com/nuxt-modules/tailwindcss/releases/tag/v6.13.0

might be worth downgrading to v6.12 to investigate

@ineshbose
Copy link
Member

Responded in nuxt-modules/tailwindcss#942 to investigate 👍 (wouldn't close this one yet though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

3 participants