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

CLI error on version 3.0.0 #353

Open
1 of 2 tasks
mariemattick1999 opened this issue Dec 20, 2021 · 3 comments
Open
1 of 2 tasks

CLI error on version 3.0.0 #353

mariemattick1999 opened this issue Dec 20, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@mariemattick1999
Copy link

I was trying to upgrade from version 2.2.6 to 3.0.0

Environment:

  • TailwindCSS version: "2.2.19"
  • tailwindcss-classnames version: "3.0.0"
  • Node.js version: "16.13.0"

Current Behavior

When running "yarn generate-css-types" I'm getting this error:
error

Expected Behavior

The classnames file gets generated as in former version.

How to Reproduce

Just run the command

Additional Questions

  • I've searched the issues list and this is not a duplicate
  • I'm willing to fix this error
@mariemattick1999 mariemattick1999 added the bug Something isn't working label Dec 20, 2021
@ryangoree
Copy link

Is v3 compatible with tailwindcss v2? Have you tried upgrading tailwindcss to v3 too?

@mariemattick1999
Copy link
Author

Yes, I tried that to, but it didn't change anything

@muhammadsammy
Copy link
Owner

I think this is because you are using an old config (v2) which is not compatible with v3 in which the closures evaluation has changed:

v2:

module.exports = {
  theme: {
    backdropBlur: (theme) => theme('blur'),
  }
}

v3:

module.exports = {
  theme: {
    backdropBlur: ({ theme }) => theme('blur'),
  }
}

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

3 participants