google / open-location-code

Open Location Code is a library to generate short codes, called "plus codes", that can be used as digital addresses where street addresses don't exist.
https://plus.codes
Apache License 2.0
4.06k stars 471 forks source link

NextJs + Node Import and returnExportsGlobal Issue #482

Open robertc11 opened 2 years ago

robertc11 commented 2 years ago

Hi,

At first I was struggling to import this library. I used yarn add and tried to import but did not work. Finally I brought down the js source file and import the file using require and it worked.

I then found issue #179 and was able to move past the initial error Module not found: Can't resolve 'b'

Then I started getting the below error while using the code in this commit 5a5d944 with modifications from solution in issue #179 olc-error

drinckes commented 2 months ago

Can you provide details on your environment?