Closed sant123 closed 3 months ago
import { jsx, jsxs } from "https://esm.sh/react@18.3.1/jsx-runtime";
I get this type-checking error:
'"https://esm.sh/react@18.3.1/jsx-runtime"' has no exported member named 'jsx'. Did you mean 'JSX'?
jsx
jsxs
I know these functions have the following comment: You should not use this function directly. Use JSX and a transpiler instead.. However I'm aware of it and need to use them directly.
You should not use this function directly. Use JSX and a transpiler instead.
Thanks!!!
i think it's caused by the incorrect dts, try https://esm.sh/react@18.3.1/jsx-runtime?no-dts
It worked but it's typing is any now. However for what I need is okay.
Thanks @ije
Failing module
Error message
I get this type-checking error:
'"https://esm.sh/react@18.3.1/jsx-runtime"' has no exported member named 'jsx'. Did you mean 'JSX'?
Additional info
jsx
andjsxs
I know these functions have the following comment:
You should not use this function directly. Use JSX and a transpiler instead.
. However I'm aware of it and need to use them directly.Thanks!!!