Skip to content

compile failure #4296

Answered by cmdcolin
yonglbl asked this question in Q&A
Mar 16, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

you need a couple polyfills to properly use @jbrowse/react-linear-genome-view and other embedded components in webpack/create-react-app v5

we have some examples of setups here https://jbrowse.org/jb2/docs/embedded_components/

this source code uses create-react-app v5 with CRACO to supply the polyfills via the NodePolyfillPlugin https://github.com/GMOD/jbrowse-react-linear-genome-view-cra5-demo

an ongoing project is to reduce the need for polyfills in our app but currently, it is required :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yonglbl
Comment options

@cmdcolin
Comment options

Answer selected by yonglbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants