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 🤷