Closed Hdoc1509 closed 1 month ago
By checking Network
tab in DevTools, all services returns an error status:
By checking the logs of netlify functions, I found an error about a not defined variable:
By checking build output of Geolocation
api, I found bad generated code that causes the previous error about GeolocationPositionError
:
Note: the only file where the previous object is declared is in @lib/geolocation
Jobs
and Remaining searches
api's are also importing some utils from output file of Geolocation
api:
GeolocationPositionError interface
only exists in Browser environments. This cause crash on server runtime.Jobs
and Remaining searches
api's imports utils from Geolocation
api output file, those api's also crashesAfter checking Geolocation server service file
, I found at this line an import of pickLocationOption()
util from geolocation
utils.
geolocation
utils file is the only place where there is an import from @lib/geolocation
, which declares an object by using GeolocationPositionError
@lib/geolocation
in geolocation
utils is bundled within Geolocation
server output fileBy moving pickLocationOptions()
util to another file, Geolocation
server output file does not contain the object with GeolocationPositionError
interface
Inital Load
On initial load,
Remaining Searches
andGeolocation
services returnunkwon error
, as shown in the following image:Searching
When trying to search,
Jobs
services shows the same eror: