-
Notifications
You must be signed in to change notification settings - Fork 7
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
proj4 is not a function #4
Comments
Please provide a minimal code snippet that reproduces the error. |
hi, |
With Line 23 in dfb0954
|
It probably depends on the bundler and its configuration. This could be mitigated by something like: let proj4 = require('proj4');
if (typeof proj4 !== 'function') {
proj4 = proj4.default;
}
const projected = proj4(…); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I've been trying to use this tool within an angular app (v. 4) and I get this error when I try call
toWGS()
:ERROR TypeError: proj4 is not a function
When I change the proj4 function call (index.js:23) to
proj4.default()
it works.The text was updated successfully, but these errors were encountered: