dan5py / turborepo-shadcn-ui

Turborepo starter with shadcn/ui pre-configured.
MIT License
545 stars 105 forks source link

Hello sir, i got an issue just like in the picture below, may i ask you why? Thanksss #3

Closed Adiyasa26 closed 10 months ago

Adiyasa26 commented 1 year ago

image

Adiyasa26 commented 1 year ago

The error said 'Button' cannot be used as a JSX component. Its type 'ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>' is not a valid JSX element type. Type 'ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'. Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'. Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.ts(2786) index.d.ts(198, 9): 'children' is declared here.

matheralvs commented 1 year ago

@Adiyasa26 Are you using npm version or pnpm version?

dan5py commented 1 year ago

Hi @Adiyasa26, that's usually a bug with the TS server, can you try restarting VSCode and see if the error persists?

Adiyasa26 commented 1 year ago

@Adiyasa26 Are you using npm version or pnpm version?

I use pnpm version @matheralvs

Adiyasa26 commented 1 year ago

Hi @Adiyasa26, that's usually a bug with the TS server, can you try restarting VSCode and see if the error persists?

Yes i already try restart the ts and restart vscode too @dan5py

la-ruee-vers-le-bois commented 1 year ago

+1 i have the same problem when i'am trying to build my code

dan5py commented 1 year ago

Does this problem still occur? @Adiyasa26, @la-ruee-vers-le-bois

tmzq commented 12 months ago

Ran into the same issue:

image
dan5py commented 10 months ago

Should be fixed with the latest release 1.1.0