-
Notifications
You must be signed in to change notification settings - Fork 46
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
Class methods not imported by bundler? #100
Comments
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 |
@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 think this is resolved now since we use do import from |
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: