GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
205 stars 61 forks source link

Issues about the Reference sequence track error #4461

Closed 211melody closed 3 months ago

211melody commented 3 months ago

I got this error from JBrowse, here is the stack trace:

Error loading source map, showing raw stack trace below:
ReferenceError: Buffer is not defined
ReferenceError: Buffer is not defined
    at BgzipIndexedFasta._fetchFromIndexEntry (http://unpkg.com/@jbrowse/react-linear-genome-view/dist/react-linear-genome-view.umd.development.js:28074:26)
    at BgzipIndexedFasta.getResiduesByName (http://unpkg.com/@jbrowse/react-linear-genome-view/dist/react-linear-genome-view.umd.development.js:28055:21)
cmdcolin commented 3 months ago

thanks for reporting this. i think i figured out a fix, sort of similar to this PR but apply it to the indexedfasta https://github.com/GMOD/bam-js/pull/98

cmdcolin commented 3 months ago

@211melody I think this should be fixed now in v2.12.2 if you want to check

211melody commented 3 months ago

@211melody I think this should be fixed now in v2.12.2 if you want to check Yes, it is ok now, thanks

cmdcolin commented 3 months ago

awesome, glad that worked :)