Skip to content
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

Not compatible for running under node.js #3

Open
DaveA-W opened this issue May 28, 2020 · 0 comments
Open

Not compatible for running under node.js #3

DaveA-W opened this issue May 28, 2020 · 0 comments

Comments

@DaveA-W
Copy link

DaveA-W commented May 28, 2020

v1.0.0-beta.4 relies on the global window object, so will only run in a browser context.
Starting a node.js project that includes the package results in an uncaught exception:

Exception has occurred: ReferenceError
ReferenceError: window is not defined
    at Object.<anonymous> (\node_modules\fast-geotiff\dist\index.js:1:671)
    at Module._compile (internal/modules/cjs/loader.js:1133:30)
    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant