-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer is undefined in the linear-view #72
Comments
Hi there, You can for example npm install buffer Then in your react code, maybe at app startup, write import {Buffer} from 'buffer' There are also more 'automatic' ways to do this within the bundler system with e.g. the webpack NodePolyfillPlugin, but the above way is the easiest approach. Example of NodePolyfillPlugin here https://github.com/GMOD/jbrowse-react-linear-genome-view-cra5-demo/blob/main/craco.config.js#L10-L12 Example of the window.Buffer=Buffer approach here https://github.com/GMOD/jbrowse-react-linear-genome-view-vite-demo/blob/main/src/main.tsx#L5-L7 Just curious, was this issue something new that happened when using v2.7.0? |
random side note: We may in the future try to make it so that we don't need the Buffer polyfill but it may take awhile as it is part of many of our data parsing packages |
Okey, I get it, close this ticket |
Hello,
I use JBrowse2 embedded version of the Linear View (v2.7.0)
And I've got this strange error:
Can you help me with this problem?
Best regards, Aleksey.
The text was updated successfully, but these errors were encountered: