-
Notifications
You must be signed in to change notification settings - Fork 30
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
fflate.decompressSync is not a function when using nifti-reader-js (React) #39
Comments
Could I have an update on this item? Thanks! |
@pcanas you are installing the up stream I notice that when your run
a yarn-error.log is created that notes |
Hi @neurolabusc Also notice that the
you would not see such error. Could you provide any more updates on this? Thank you! |
@pcanas here is a minimal demo which uses yarn to install and run nifti-reader-js. The example reads a compressed NIfTI file (which uses fflate for new versions, and pako for older versions of nifti-reader-js:
I am not familiar with yarn or cornerstone. While cornerstone is legendary for DICOM-support, you may want to consider NiiVue if your interest in NIfTI images (as well as meshes, connectomes and tractography). You can see a lot of live demos here, it is also embedded into a lot of React frameworks, including those shown here as well as OpenNeuro. A minimal HTML page would be:
|
How to reproduce
yarn install
yarn dev
package.json
dependencies areThe problem
We get an error because the fflate functions are not found
These are found when I am navigating my project, so it might have to do with the bundling...
The text was updated successfully, but these errors were encountered: