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

2.0.1-compat incompatible with @tailwindcss/ui #2835

Closed
Negan1911 opened this issue Nov 20, 2020 · 5 comments
Closed

2.0.1-compat incompatible with @tailwindcss/ui #2835

Negan1911 opened this issue Nov 20, 2020 · 5 comments

Comments

@Negan1911
Copy link

Negan1911 commented Nov 20, 2020

Describe the problem:

Whenever we try to run Tailwind 2 with @tailwindcss/ui we get this error:

./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
TypeError: value.charCodeAt is not a function

There are two workarounds:

  1. Remove the @tailwindcss/ui plugin, which makes trouble using Tailwind UI.
  2. Comment @tailwind components; which makes the project work again but with unknown consecuences.

Link to a minimal reproduction:

https://github.com/Negan1911/tailwind-error-repro

Install all and run yarn start and you'll face the issue, you can also try both workarounds to see them working again.

@trevyn
Copy link

trevyn commented Nov 20, 2020

@tailwindcss/ui is to be removed when upgrading to Tailwind 2. See upgrading instructions: https://tailwindui.com/changes-for-v2#updating-your-tailwind-ui-projects

@Negan1911
Copy link
Author

Ah, I see, thanks for clarifying!

@Pringels
Copy link

Excuse my ignorance, but where exactly in the upgrade guide is this mentioned?

@Negan1911
Copy link
Author

Negan1911 commented Nov 20, 2020

@Pringels looks to be a new doc on Tailwind UI page, haven't seen it before and I think that was not published yet when I was having this issue, but looks to be on the tailwindui.com header
Screen Shot 2020-11-20 at 10 56 24

@Pringels
Copy link

Ah gotcha, thanks @Negan1911 !

I think it might be a good idea to include a hint somewhere in the Tailwind CSS upgrade guide.
Something like: "Note to Tailwind UI users: you will also need to follow this guide"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants