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

Missing simpleConfig.stub.js #650

Closed
Seesaem opened this issue Mar 28, 2023 · 8 comments · Fixed by #651
Closed

Missing simpleConfig.stub.js #650

Seesaem opened this issue Mar 28, 2023 · 8 comments · Fixed by #651
Labels
bug Something isn't working

Comments

@Seesaem
Copy link

Seesaem commented Mar 28, 2023

Nuxt 3.3.2
nuxt-modules tailwindcss version 6.6.4

ERROR Cannot start nuxt: Cannot find module '/Users/Dev/node_modules/tailwindcss/stubs/simpleConfig.stub.js' imported from /Users/Dev/node_modules/@nuxtjs/tailwindcss/dist/module.mjs

at new NodeError (node:internal/errors:393:5)
at finalizeResolution (node:internal/modules/esm/resolve:323:11)
at moduleResolve (node:internal/modules/esm/resolve:916:10) 17:30:07
at defaultResolve (node:internal/modules/esm/resolve:1124:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36)

@Seesaem Seesaem added the bug Something isn't working label Mar 28, 2023
@ItzExotical
Copy link

Same issue here. Hoping this gets fixed ASAP.
image

@IlyaChumakov
Copy link

IlyaChumakov commented Mar 28, 2023

I ran into this same issue. The problem is in this line in one of the last commits.
import defaultTailwindConfig from 'tailwindcss/stubs/simpleConfig.stub.js'

Temporarily solved by downgrading to "@nuxtjs/tailwindcss": "6.6.3"

@stlbucket
Copy link

image

the problem is on line 21 of src/module.ts

@stlbucket
Copy link

stlbucket commented Mar 28, 2023

image

i was able to get this working for local dev by directly editing the mjs file down in node modules

it looks like simpleConfig.stub.js was renamed to config.simple.js

tailwindlabs/tailwindcss#10785

i am using pnpm, so my local path was:

/path/to/project/node_modules/.pnpm/@nuxtjs[email protected]/node_modules/@nuxtjs/tailwindcss/dist/module.mjs

Copy link
Collaborator

atinux commented Mar 28, 2023

Can you check @ineshbose?

@stlbucket
Copy link

temp workaround:

"@nuxtjs/tailwindcss": "6.6.0",
"tailwindcss": "3.2.6"

@ineshbose
Copy link
Collaborator

The changes introduced in tailwindlabs/tailwindcss#10785 most likely caused this. I see #651 open by a keen contributor now 😄

@Seesaem
Copy link
Author

Seesaem commented Mar 28, 2023

I ran into this same issue. The problem is in this line in one of the last commits. import defaultTailwindConfig from 'tailwindcss/stubs/simpleConfig.stub.js'

Temporarily solved by downgrading to "@nuxtjs/tailwindcss": "6.6.3"

Did it too, worked fine. easiest solution while waiting for the file name to be changed

BenjaminOddou added a commit to BenjaminOddou/portfolio that referenced this issue Mar 29, 2023
- Missing simpleConfig.stub.js [#650](nuxt-modules/tailwindcss#650)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants