-
-
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
Incorrect Result: TypeError: c.openSync is not a function at p (find.ts:111:1) #180
Comments
What is the build environment where this is happening? |
I am using yarn |
Are you trying to build for a browser-based environment? node-geo-tz has some calls to the file system that may not be supported without additional bundling configuration magic. There is a "Bundlers" section in the readme that may point to some clues that may help figure out how to bundle. |
Yes it is for a browser-based environment, I didn't notice that the library wasn't meant to be used like that, I didn't bother to look more into it because it worked right away, just those specific coordinates there is a problem, I probably will move this library to the backend then and access it via api in the frontend. |
Sounds good. I'll go ahead and close the issue then as it's mostly a duplicate of #111. |
Query Details
Input Coordinates: -29.771706356994166, -57.08456733482596
Expected Result: ['America/Sao_Paulo']
Actual Result: ERROR
Dataset: "Alike since 1970"
Discussion
It looks like it is a bug in this specific coordinates, for all other coordinates we tested in our software it works fine but there was one client in production using this coordinates and it resulted in a blank screen, we solved it with a try catch and a default value in case a problem happens.
I am using version 8.1.1, tried to upgrade to version 8.1.2 but same error occurs
Full error:
The text was updated successfully, but these errors were encountered: