Open niyrme opened 1 month ago
I have pinpointed the issue to be function parseValue(node: any): any
reading assuming the wrong type and reading the wrong field.
I thought I fixed the problem but it seems that if the AST node are treated as correct types, parsing the object first is not a viable option because it cannot handle spread syntax. The only way would be traverse through the AST and replace the value one by one.
+1 to fixing this, but the other, larger issue I've faced is that after fixing this and following the Remix install steps, I get the following error when trying to build:
app/root.tsx (10:7): "default" is not exported by "app/tailwind.css", imported by "app/root.tsx".
file: my-app/app/root.tsx:10:7
8: import type { LinksFunction } from "@remix-run/node";
9:
10: import styles from "./tailwind.css";
^
11:
12: export const links: LinksFunction = () => [
Anyone else encounter this? The error is on a pure vanilla Remix project and fresh shadcn init.
Figured it out, the issue is taht the import should be:
import styles from "./tailwind.css?url";
Describe the bug
after a clean project setup I added many of the shadcn components and the resulting
tailwind.config.ts
file was slightly malformed.theme.extend.fontFamily
has some escaped newlines (and I'm not sure but'Inter "'
as a font also looks a bit wrong)Affected component/components
can't say for sure if it's just one, or a combination of many
How to reproduce
npx create-remix@2.11.2
1.1. name:npx shadcn@2.0.3 init
2.1. style: default 2.2. base color: slate 2.3. css variables: yesnpx shadcn@2.0.3 add accordion alert-dialog avatar badge button calendar card carousel checkbox dialog drawer input input-otp label pagination progress radio-group scroll-area select separator sheet skeleton slider switch table tabs textarea toast toggle toggle-group tooltip
3.2. skip/decline both button and toggle overwrite messagesCodesandbox/StackBlitz link
https://codesandbox.io/p/devbox/43jndj
Logs
No response
System Info
Before submitting