-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Regression in compatibility with Tailwindcss #27056
Comments
I'm not able to reproduce this. Running |
It works without arguments indeed, my bad. I did not include the arguments The full command I run is the following:
|
That also works. @nathanwhit pointed out he can reproduce this when he has a tailwind.config.js with a So it's loading the tailwind.config.js, but that's defined as being ESM. There was a bug fix in Deno where we would incorrectly and accidentally identify the module kind (esm or cjs) based on the referrer (this is really bad to do for a lot of reasons I won't get into here). This file is probably defined in a spot that is considered ESM. You can fix this by changing |
Also, sorry this bug fix caused a new error to appear, but Deno's behaviour is more correct now and will lead to less bugs/errors overall. |
I confirm changing the config file to ESM works. Thank you! |
Note I've opened #27094 which would tell Deno to attempt to load files as CJS even when there's not a |
In version 2.0.6 I can run tailwind as such:
After upgrading to 2.1.1 the same command fails:
The text was updated successfully, but these errors were encountered: