Skip to content

Outdated installation instructions #138

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
SylvainGarrigues opened this issue Apr 2, 2023 · 1 comment
Closed

Outdated installation instructions #138

SylvainGarrigues opened this issue Apr 2, 2023 · 1 comment

Comments

@SylvainGarrigues
Copy link

What version of @tailwindcss/forms are you using?

N/A

What version of Node.js are you using?

N/A

What browser are you using?

N/A

What operating system are you using?

N/A

Reproduction repository

N/A

Describe your issue

tailwind initialization script now produces ESM config files, and require('@tailwindcss/forms') is no longer possible: see code below provided in the README.md:

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require('@tailwindcss/forms'),
    // ...
  ],
}
@adamwathan
Copy link
Member

Hey! You can absolutely still use require in an ESM config file, here's a demo project where it all works as expected:

https://github.com/adamwathan/sveltekit-forms-esm-demo

Not planning to update the instructions to show every possible combination of file formats or imports I don't think, just too messy and impractical.

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

2 participants