You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems odd to ignore eslint and point to the minified bundle. It should just be,
import{fromUrl,Pool}from'geotiff';
but this throws an error.
"_decoder2.default is not a constructor"
which is a method on Pool. It seems some es6 class methods are not importing with 3rd party libraries in our build. Specifically, Pool is exported in the but it's missing it's methods. I think this is an issue with our build because I also tried to import a smaller wrapper around zarr that I've been working on and ran into the same issue. This could be related to some of the issues we've had with integrating with vitessce.
The text was updated successfully, but these errors were encountered:
It's certainly possible that this is a problem with our build but I have had this problem outside of our application as well with this library. Just running create-react-app and importing the Pool and then instantiating it throws the error.
@ilan-gold : Had you said other folks also had problems with the way geotiff is packaged? I might not be remembering correctly: I don't see any issues there describing exactly this problem.
geotiffjs/geotiff.js#98 and geotiffjs/geotiff.js#74 both describe issues similar to what I have. I can open an issue with them tomorrow. There might also be something I missed in the threads that say how to solve it but I didn't really glean much. Also, this feels like it's a bug anyway. I haven't given this much attention because the long term plan was to fork the library anyway.
I noticed in #99 that we are currently importing from geotiff like:
It seems odd to ignore eslint and point to the minified bundle. It should just be,
but this throws an error.
"_decoder2.default is not a constructor"
which is a method on
Pool
. It seems some es6 class methods are not importing with 3rd party libraries in our build. Specifically,Pool
is exported in the but it's missing it's methods. I think this is an issue with our build because I also tried to import a smaller wrapper around zarr that I've been working on and ran into the same issue. This could be related to some of the issues we've had with integrating with vitessce.The text was updated successfully, but these errors were encountered: