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

integration with shadcn/ui drops error #11892

Closed
1 task
amirhoseinsh opened this issue Aug 31, 2024 · 2 comments
Closed
1 task

integration with shadcn/ui drops error #11892

amirhoseinsh opened this issue Aug 31, 2024 · 2 comments
Labels
needs triage Issue needs to be triaged

Comments

@amirhoseinsh
Copy link

amirhoseinsh commented Aug 31, 2024

Astro Info

Astro                    v4.14.2
Node                     v20.11.0
System                   Windows (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             @astrojs/tailwind
                         @astrojs/react
                         @astrojs/sitemap
                         astro-robots-txt

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

I follow up shadcn integration page with astro, but it gives me an error like below when I run
npx shadcn@latest init

✔ Preflight checks.
✔ Verifying framework. Found Astro.
✖ Validating Tailwind CSS.
✔ Validating import alias.

No Tailwind CSS configuration found at C:\Users\USER\Desktop\code\open-matn\3f-commercial.
It is likely you do not have Tailwind CSS installed or have an invalid configuration.
Install Tailwind CSS then try again.
Visit https://tailwindcss.com/docs/guides/astro to get started.

my tailwind.config.mjs file is like below:

/** @type {import('tailwindcss').Config} */
export default {
	content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}',
		'./@/**/*.{ts,tsx}',
		],
	theme: {
		extend: {},
	},
	plugins: [],
}

also my tsconfig.json file is like this:

"compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "./src/*"
      ]
    },
    "jsx": "react-jsx",
    "jsxImportSource": "react"
  },

What's the expected result?

I want to add shadcn to my project

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/astro/tree/latest/examples/with-tailwindcss?on=stackblitz

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Aug 31, 2024
@florian-lefebvre
Copy link
Member

If the issue occurs using shadcn/ui's cli, then an issue should be opened there

@florian-lefebvre florian-lefebvre closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2024
@florian-lefebvre
Copy link
Member

See shadcn-ui/ui#4701

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants