Skip to content

Strategy class produces errors #79

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

Closed
MotionPhix opened this issue Sep 11, 2021 · 4 comments
Closed

Strategy class produces errors #79

MotionPhix opened this issue Sep 11, 2021 · 4 comments

Comments

@MotionPhix
Copy link

What version of @tailwindcss/forms are you using?

0.2.1

What version of Node.js are you using?

v14. 16.0

What browser are you using?

Chrome

What operating system are you using?

Windows 10

Reproduction repository

None

Describe your issue

Screenshot (24)

With reference from the screenshot above, I am having issues with tailwindcss/forms plugin when I opt to use the class strategy. Using it with default configuration works fine but I'm using another UI library for forms and I wanted to only use tailwindcss/forms on a few inputs (checkbox to be precise), but the class strategy produces TypeError: require(....) is not a function at Object.<anonymous>. What could be the issue?

@adamwathan
Copy link
Member

Hey! I can't reproduce this, here's a repository I created showing it working as expected:

https://github.com/adamwathan/tailwindcss-forms-class-strategy-test/tree/main

In order to keep our issues tidy and under control, we close issues when no reproduction is provided, especially when we are unable to reproduce ourselves after taking the time to try and recreate what's been described.

If the demo I've created above doesn't fix your problem, can you please open a new issue and include a reproduction so we can more easily troubleshoot using your exact code?

@jean-francois-labbe
Copy link

I had the same issue, the @tailwindcss/forms package version was 0.2.1
Upgrading to 0.3.3 fixed it

@MotionPhix
Copy link
Author

MotionPhix commented Sep 30, 2021 via email

@tance77
Copy link

tance77 commented Jun 13, 2022

You spelt Strategy wrong @MotionPhix missing an r

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

4 participants