jsx-runtime missing
See original GitHub issueIt would be really great if Crank had a jsx-runtime.
As hint, please find the Preact counterpart here.
Would allow the following tsconfig.json entries:
"jsx": "react-jsx",
"jsxImportSource": "@b9g/crank"
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Cannot find module 'react/jsx-runtime' · Issue #2119 - GitHub
Current behavior: I've upgraded to v11, I received the following error when the run the test suite. ○ Test suite failed to run...
Read more >Uncaught Error: Cannot find module 'react/jsx-runtime'
js file. I tried adding it the .js back to webpack's resolve.extensions and the error disappeared. In hindsight I guess this make senses....
Read more >Module not found: Can't resolve 'react/jsx-runtime' | bobbyhadz
To solve the error "Module not found: Error: Can't resolve 'react/jsx-runtime'", make sure to update the react package by opening your terminal in...
Read more >cannot find module '@emotion/react/jsx-runtime' or its ...
Cannot find module 'react/jsx-runtime' · Issue #2119 · emotion-js . ... linux/amd64 7:54:18 PM: Installing missing commands 7:54:18 PM: Verify run directory ...
Read more >Introducing the New JSX Transform – React Blog
The functions inside react/jsx-runtime and react/jsx-dev-runtime must only be used by the compiler transform. If you need to manually create ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@darrylcousins Thank you very much, Darryl, for all that info about how JSX can be configured with
Vite. This was indeed very informative and helpful. I’ve not usedViteyet, but after your posts above, I’ll give it a try … actually really very nice … Nevertheless, as not everybody usesViteandjsx-runtimes are some kind of standard now, it would still be great ifCrankhad ajsx-runtime, I guess 😉Hi,
The example offered for esbuild config options is:
I’ve tested the following and it works. Of course it complains that
Identifier 'createElement' has already been declaredif I do explicitly define the import in any jsx file:Hope that helps.
Sincere regards, Darryl Cousins