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

Didn't work under nodejs 4.2.6. #17

Open
mvtm-dn opened this issue Feb 20, 2017 · 1 comment
Open

Didn't work under nodejs 4.2.6. #17

mvtm-dn opened this issue Feb 20, 2017 · 1 comment

Comments

@mvtm-dn
Copy link

mvtm-dn commented Feb 20, 2017

Got this error message:

/path/to/test/node_modules/geotiff/src/dataview64.js:1
(function (exports, require, module, __filename, __dirname) { class DataView64 {
                                                              ^^^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Still use '--use-strict' switch to workaround this issue.

@constantinius
Copy link
Member

You can use the built version from the dist directory (which was originally meant for usage in older browsers) and was transpiled using babel. I'm currently preparing a modernized buildchain where the modules to be included are all transpiled.

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

2 participants