Armax/Pokemon-GO-node-api

Not compatible with browserify

ChenLi0830 opened this issue · 1 comments

Tried to use browserify with it but failed.

It seems to be caused by the dependency geocoder which is no longer maintained. This dependency uses an old version of "request" which is not browserify compatible.

Update
For anyone who might be interested, this and any other similar packages are not going to work on modern browsers.

Here is why - when a client browser tries to send a login request, the response from the authentication servers (google and PTC) has a 'Access-Control-Allow-Origin' header of what domain should receive the response and that will cause any modern browser to refuse the response. Thus, not be able to login to your account.