-
hello, when i run my react app useing the react-linear-genome-view component, it shows errors when compile, any suggestion if I missing something? BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 :) |
Beta Was this translation helpful? Give feedback.
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 :)