Skip to content

Conversation

soulful-ramble
Copy link
Contributor

@soulful-ramble soulful-ramble commented Sep 16, 2024

fix this issue: #1178

@juliusmarminge juliusmarminge merged commit 276e921 into t3-oss:main Sep 19, 2024
3 of 5 checks passed
@nicoheredia59
Copy link

√ Which components would you like to add? » accordion
✔ Checking registry.
⠋ Updating tailwind.config.ts
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Don't detecting tailwind config. I dont know if I'm the problem or should be fixed

@nicoheredia59
Copy link

As a workaround, I would create tailwind.config.ts at UI package

import type { Config } from "tailwindcss";

import baseConfig from "@acme/tailwind-config/web";

export default {
  content: [...baseConfig.content],
  presets: [baseConfig],
} satisfies Config;

By adding this, you're being able to add components without getting the previous error. Actually don't know another way to fix it.

Note that you need to add @acme/tailwind-config/web in your package.json

@soulful-ramble
Copy link
Contributor Author

As a workaround, I would create tailwind.config.ts at UI package

import type { Config } from "tailwindcss";

import baseConfig from "@acme/tailwind-config/web";

export default {
  content: [...baseConfig.content],
  presets: [baseConfig],
} satisfies Config;

By adding this, you're being able to add components without getting the previous error. Actually don't know another way to fix it.

Note that you need to add @acme/tailwind-config/web in your package.json

It works. But I think we could modify config in components.json:

-    "config": "./tailwind.config.ts",
+    "config": "../../tooling/tailwind/web.ts",

VaniaPopovic pushed a commit to VaniaPopovic/create-t3-turbo that referenced this pull request Mar 4, 2025
* fix: slice token bearer prefix in invalidate function

* fix(deps): update shadcn command to make sure it works
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 this pull request may close these issues.

3 participants