Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Issue when upgrading to TW v2 #88

Open
usernotnull opened this issue Nov 19, 2020 · 7 comments
Open

Issue when upgrading to TW v2 #88

usernotnull opened this issue Nov 19, 2020 · 7 comments

Comments

@usernotnull
Copy link

usernotnull commented Nov 19, 2020

After upgrading to Tailwind v2 (with postcss7 compat), requiring this plugin in my tailwind.config.js throws the following error on npm run:

Module build failed (from ./node_modules/css-loader/index.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js):
TypeError: value.charCodeAt is not a function at

At this line in my scss: @tailwind components;

Is this plugin ready for the tailwind upgrade yet or might it be another issue from my side?

@ghost
Copy link

ghost commented Nov 19, 2020

I think they recommend https://github.com/tailwindlabs/tailwindcss-forms for v2

@usernotnull
Copy link
Author

Probably time to mark this project as abandoned with a link in the description to the new tailwind forms

@deantheiceman
Copy link

How do we use the new one while keeping the same styles

@wobsoriano
Copy link

I think they recommend https://github.com/tailwindlabs/tailwindcss-forms for v2

Looking at the commits, I think they're preparing for Tailwind 2 compatibility #79

@rhukster
Copy link

I switched from custom to tailwindcss-forms + some custom CSS to apply my form styling (which I previously had set in tailwind.config.js) based on class names as I can't easily modify every field individually.

@wobsoriano
Copy link

Yep, looks like they're not planning on supporting Tailwind CSS 2

https://twitter.com/adamwathan/status/1330846547039367169

@ghost
Copy link

ghost commented Dec 5, 2020

It's all in docs https://tailwindcss.com/docs/upgrading-to-v2#update-typography-and-forms-plugins

If you are using @tailwindcss/custom-forms, you will want to migrate to @tailwindcss/forms which replaces it.
Learn more about the new forms plugin in the release notes.

The @tailwindcss/custom-forms plugin is not compatible with Tailwind CSS v2.0.

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

No branches or pull requests

4 participants