Skip to content

Not compatible for running under node.js #3

Open
@DaveA-W

Description

@DaveA-W

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)
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions