NestarZ
NestarZ
DDeno
Created by NestarZ on 5/8/2024 in #help
Like import.meta.resolve("./bla/bla") but so that it return me the relative cwd path
thank you @lucacasonato
4 replies
DDeno
Created by NestarZ on 2/29/2024 in #help
Why JSX is not working ?
And this // @deno-types="@types/react" import React from "react"; const A: React.FC = () => <div />; const B: React.FC = () => <A />; do TS2786 [ERROR]: 'A' cannot be used as a JSX component. Its type 'FC<{}>' is not a valid JSX element type. Type 'FunctionComponent<{}>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'. Type 'ReactElement<any, any> | null' is not assignable to type 'ReactNode'. Type 'ReactElement<any, any>' is not assignable to type 'ReactNode'. Property 'children' is missing in type 'ReactElement<any, any>' but required in type 'ReactPortal'. const B: React.FC = () => <A />; ^ at file:///Users/code/bureaudouble/bureau/src/routes/Home.tsx:23:28 'children' is declared here. children: ReactNode; ~~~~ at file:///Users/Library/Caches/deno/npm/registry.npmjs.org/@types/react/18.2.57/index.d.ts:326:9
3 replies
DDeno
Created by NestarZ on 2/24/2024 in #help
How to apply @deno-types on a dynamic import
??
4 replies
DDeno
Created by NestarZ on 2/24/2024 in #help
How to apply @deno-types on a dynamic import
Can an human confirm Deno dont support dynamic imports for added types ? Should an issue be open ?
4 replies