taiwannumberoneT
Denoβ€’3y agoβ€’
3 replies
taiwannumberone

The requested module 'test/jsx-runtime' does not provide an export named 'jsxs'

hej, I have a exported function jsx() stored in jsx-runtime.ts. I also added these deno.json settings, so typescript would transpile jsx using my custom function without the need of importing it.
{
  "imports": {
    "test/jsx-runtime": "./jsx-runtime.ts"
  },
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "test"
  }
}

I used imports property so it would point to my file. The error I'm getting looks like this:
error: Uncaught SyntaxError: The requested module 'test/jsx-runtime' does not provide an export named 'jsxs'
And my question is: What exactly is jsxs or where I can find documentation on that? Typescript docs only mention either jsx() or jsxDEV() depending on your config
Was this page helpful?