[plugin:vite:css] [postcss] Unexpected token, expected "," after shadcn installed #9985
-
|
Can someone help me? when i install shadcn ui,and open then website, it's erorr what's the problem? I use remix js vite |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
|
Check the fontFamily: {
sans: [\n "Inter",\n "ui-sans-serif",\n "system-ui",\n "sans-serif",\n 'Apple Color Emoji"',\n 'Segoe UI Emoji"',\n 'Segoe UI Symbol"',\n 'Noto Color Emoji"',\n ]
},it should be: fontFamily: {
sans: [
"Inter",
"ui-sans-serif",
"system-ui",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji",
],
}, |
Beta Was this translation helpful? Give feedback.
-
|
The problem is tailwind.config.ts,use renanvalentin answer to solve |
Beta Was this translation helpful? Give feedback.
-
|
Why does the badly formed fontFamily occur? This happened to me too and this fix worked. Just need to know if PR has been made to fix this or not. |
Beta Was this translation helpful? Give feedback.
-
|
this bug sucks lol |
Beta Was this translation helpful? Give feedback.
-
|
Find and replace |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.


Check the
tailwind.config.tsfile.it should be: