GMOD / jbrowse-plugin-template

Template to quickly start a new JBrowse 2 plugin
https://jbrowse.org/
Apache License 2.0
4 stars 0 forks source link

Unable to use code from a library that has been compiled with new react jsx transform #20

Open cmdcolin opened 2 years ago

cmdcolin commented 2 years ago

I had a tsconfig in react-msaview that said

https://www.typescriptlang.org/docs/handbook/jsx.html

jsx:"react-jsx"

This outputted code using the "new jsx transform" from react

https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html

changing to jsx:"react"

worked

The error message from when it wasn't working is

Error: 'jsx' is not exported by node_modules/react/jsx-runtime.js, imported by node_modules/react-msaview/dist/components/ImportForm.js

at /home/cdiesh/src/jbrowse-plugin-msaview/node_modules/react-msaview/dist/components/ImportForm.js:12:9
cmdcolin commented 2 years ago

not really a high priority, just notable as some libraries may output this by default more perhaps