DenoDDeno
Powered by
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()
jsx()
stored in
jsx-runtime.ts
jsx-runtime.ts
. I also added these
deno.json
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"
  }
}
{
  "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'
error: Uncaught SyntaxError: The requested module 'test/jsx-runtime' does not provide an export named 'jsxs'

And my question is: What exactly is
jsxs
jsxs
or where I can find documentation on that? Typescript docs only mention either jsx() or jsxDEV() depending on your config
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

The requested module does not provide an export named 'default'
WillduneWWilldune / help
3y ago
does not provide an export named... module import
ChilliSniffCChilliSniff / help
4y ago
The requested module 'npm:@jest/globals' does not provide an export named 'describe'
bzm3rBbzm3r / help
12mo ago
error: module 'node:fs' does not provide an export named 'globSync'
OxooxoOOxooxo / help
15mo ago