Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Next.js with webpack 5 hangs on first compile (.next folder is empty) #54

@vvo

Description

@vvo

Hey there, using a brand new create-next-app, using webpack 5, all dependencies up to date, following the tailwindcss-jit README then on first load (when .next folder is empty) the build never finishes.

You have to CTRL+C and then start again for it to work.

Example repo: https://github.com/vvo/tailwindcss-jit-hangs-webpack5-next.js

git clone git@github.com:vvo/tailwindcss-jit-hangs-webpack5-next.js.git
cd tailwindcss-jit-hangs-webpack5-next
yarn && yarn dev

Now try to load http://localhost:3000 and it will hang forever.
If you restart the server it will work.

To reproduce the hang, rm -rf .next.

Disabling webpack 5 solves this issue, using webpack 5 using regular tailwindcss works.

PS: On my real-world project, the build never finishes at all, first load or second load, I could not reproduce this behavior though 🤷

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions