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

[6.12] Tailwind viewer broken for nuxt2 and bridge #886

Closed
nhh opened this issue Jul 31, 2024 · 2 comments
Closed

[6.12] Tailwind viewer broken for nuxt2 and bridge #886

nhh opened this issue Jul 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nhh
Copy link

nhh commented Jul 31, 2024

Environment

nuxt: 2.18.1
@nuxtjs/tailwindcss: 6.12.1

Reproduction

https://stackblitz.com/edit/nuxt-starter-z3wjs5?file=nuxt.config.js

  • npm run dev
  • open stackblitz /_tailwind

Describe the bug

After upgrading the nuxt tailwindcss module, the tailwind viewer breaks.

Additional context

image

Logs

> nuxt dev

ℹ Using default Tailwind CSS file                                                                                               nuxt:tailwindcss 12:07:10
ℹ Module @nuxtjs/tailwindcss took 95.26ms to setup.                                                                                              12:07:10
ℹ Tailwind Viewer: http://localhost:3000/_tailwind/                                                                             nuxt:tailwindcss 12:07:11

   ╭───────────────────────────────────────╮
   │                                       │
   │   Nuxt @ v2.18.1                      │
   │                                       │
   │   ▸ Environment: development          │
   │   ▸ Rendering:   server-side          │
   │   ▸ Target:      server               │
   │                                       │
   │   Listening: http://localhost:3000/   │
   │                                       │
   ╰───────────────────────────────────────╯

ℹ Preparing project for development                                                                                                              12:07:11
ℹ Initial build may take a while                                                                                                                 12:07:11
ℹ Discovered Components: .nuxt/components/readme.md                                                                                              12:07:11
✔ Builder initialized                                                                                                                            12:07:11
✔ Nuxt files generated                                                                                                                           12:07:11

✔ Client
  Compiled successfully in 2.86s

✔ Server
  Compiled successfully in 2.37s

ℹ Waiting for file changes                                                                                                                       12:07:14
ℹ Memory usage: 0 B (RSS: 0 B)                                                                                                                   12:07:14
ℹ Listening on: http://localhost:3000/
@nhh nhh added the bug Something isn't working label Jul 31, 2024
@ineshbose
Copy link
Collaborator

I was trying to find what changes were doing to setting up the viewer between 6.11.4 and 6.12.1, and couldn't find anything... until I realised that we are adding the serverMiddleware in modules:done hook now. It's working on my PC, so I wonder if this is some race condition.

@danielroe thoughts on modules updating serverMiddleware in modules:done for Nuxt 2? (ignore this till after your holiday please)

@ineshbose ineshbose changed the title Upgrading to v6.12.1 breaks tailwind viewer for nuxt2 apps [6.12] Tailwind viewer broken for nuxt2 Aug 21, 2024
@ineshbose ineshbose changed the title [6.12] Tailwind viewer broken for nuxt2 [6.12] Tailwind viewer broken for nuxt2 and bridge Aug 26, 2024
@ineshbose
Copy link
Collaborator

ineshbose commented Oct 14, 2024

Hi @nhh, a fix was just pushed - can you test nightly version of the module please? (after CI is done)

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

No branches or pull requests

2 participants