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

[v4] Can't find Plugins in standalone cli #15012

Closed
delCatta opened this issue Nov 15, 2024 · 2 comments · Fixed by #15028
Closed

[v4] Can't find Plugins in standalone cli #15012

delCatta opened this issue Nov 15, 2024 · 2 comments · Fixed by #15028

Comments

@delCatta
Copy link

What version of Tailwind CSS are you using?

For example: v4.0.0.alpha.34

What build tool (or framework if it abstracts the build tool) are you using?

For example: standalone-cli @ 4.0.0.alpha.34

What version of Node.js are you using?

For example: N/A

What browser are you using?

For example: N/A

What operating system are you using?

For example: macOS

Reproduction URL

https://github.com/delCatta/tailwind-issue

Describe your issue

Using the latest release I'm unable to use the @tailwindcss/typography plugin because it is not included in the executable.

I copied the release file and created an input.css file with the following contents:

@import "tailwindcss";
@plugin "@tailwindcss/typography";

Then I ran ./tailwindcss-macos-arm64 -i index.css -o built.css and got:

./tailwindcss-macos-arm64 -i index.css -o built.css
5737 |       }
5738 |       const message = `resolve '${request}' in '${path}'`;
5739 |       const finishResolved = (result) => {
5740 |         return callback(null, result.path === false ? false : `${result.path.replace(/#/g, "\0#")}${result.query ? result.query.replace(/#/g, "\0#") : ""}${result.fragment || ""}`, result);
5741 |       };
5742 |         const error = new Error("Can't " + message);
                             ^
error: Can't resolve '@tailwindcss/typography' in '<THE-CURRENT-FOLDER>'
      at finishWithoutResolve (/$bunfs/root/tailwindcss-macos-arm64:5742:23)
      at /$bunfs/root/tailwindcss-macos-arm64:5834:19
      at /$bunfs/root/tailwindcss-macos-arm64:5834:19
      at /$bunfs/root/tailwindcss-macos-arm64:5834:19
      at /$bunfs/root/tailwindcss-macos-arm64:5834:19
      at /$bunfs/root/tailwindcss-macos-arm64:5834:19

I wish to be able to use on rails using tailwind-rails and tailwind-ruby

@JDavidVR
Copy link

I've already asked it on twitter (now X) so here is the answer from Adam https://x.com/adamwathan/status/1853609169334542685

Not yet, we’re going to reimagine those plugins in general for v4 so need to do that first.

@philipp-spiess
Copy link
Member

Hey! Thanks for the report. We're working on adding support for this: #15028 @JDavidVR is right in that we want to reimagine these plugins for v4 but we also don't want you to prevent that from adopting v4 👍

philipp-spiess added a commit that referenced this issue Nov 19, 2024
Closes #15012

We do not have replacements for these plugins _just yet_. In order to
increase compatibility with setups that rely on some of these legacy
plugins, this PR bundles `@tailwindcss/forms`,
`@tailwindcss/typography`, and `@tailwindcss/aspect-ratio` (after
#15029) with the
standalone build now.

In comparison to v3, this omits the `@tailwindcss/container-queries`
plugin since is not a first-party feature of Tailwind CSS v4.

## Test Plan

Added an integration test. I also tested this by running the standalone
binary in a temporary folder with as simple input css:

```css
@import "tailwindcss";
@plugin "@tailwindcss/typography";
```
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

Successfully merging a pull request may close this issue.

3 participants