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

Tailwind Viewer doesn't work in 4.0.0/4.0.1 #297

Closed
toxin20 opened this issue Mar 16, 2021 · 5 comments · Fixed by rogden/tailwind-config-viewer#41
Closed

Tailwind Viewer doesn't work in 4.0.0/4.0.1 #297

toxin20 opened this issue Mar 16, 2021 · 5 comments · Fixed by rogden/tailwind-config-viewer#41
Labels
bug Something isn't working

Comments

@toxin20
Copy link

toxin20 commented Mar 16, 2021

Version

@nuxtjs/tailwindcss: 4.0.1
nuxt: 2.15.3
node: 14.15.4
npm: 7.5.4

Reproduction Link

N/A

Steps to reproduce

Create a fresh Nuxt project with version 2.15.3 (I used npm init nuxt-app nuxt-tailwind2-test). Then follow steps from https://tailwindcss.nuxtjs.org/setup to install TailwindCSS

What is Expected?

Running npm run dev should start the tailwind viewer at http://localhost:3000/_tailwind/

What is actually happening?

I'm getting the error message Cannot find module 'tailwindcss/resolveConfig' when running npm run dev. Tailwind CSS compilation and Nuxt dev server works though.

Bildschirmfoto 2021-03-16 um 11 33 27

The error doesn't appear if I set viewer: false for tailwind in the nuxt.config.js

@toxin20 toxin20 added the bug Something isn't working label Mar 16, 2021
@toxin20
Copy link
Author

toxin20 commented Mar 16, 2021

Update:
This seems to have something to do with npm. I saw that the sandbox was using yarn and I couldn't reproduce the error there. Tried using yarn on my local machine and it worked there as well.

@atinux: Would you generally advise against using nuxt with npm? I see in the nuxt docs that yarn is the "first class citizen" shown for the guides and I'm wondering if this is just a matter of taste or if you would advise me to run existing and new nuxt projects with yarn.

@atinux
Copy link
Collaborator

atinux commented Mar 16, 2021

Can you tell that when running npm install tailwindcss it works?

@toxin20
Copy link
Author

toxin20 commented Mar 16, 2021

Can you tell that when running npm install tailwindcss it works?

Yes, then it works. 👍🏻

@rogden
Copy link
Contributor

rogden commented Mar 16, 2021

@pi0 Your fix is merged in v1.5.1

@productdevbook
Copy link

@atinux or @toxin20 is it fixed ? Please closed issue :)

@toxin20 toxin20 closed this as completed Apr 9, 2021
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.

4 participants