google-stocks icon indicating copy to clipboard operation
google-stocks copied to clipboard

Is this a server-only package?

Open andrewhartwig opened this issue 6 years ago • 2 comments

I see one of your dependencies is request which uses the filesystem module (from node).

Is there any package similar that is meant for the front-end?

andrewhartwig avatar Sep 05 '18 13:09 andrewhartwig

@andrewhartwig You are right I just spotted that I use request npm module. I guess I should've used something agnostic like superagent instead.

If you have webpack in your project I believe you should be fine. Never really researched if request could be used on front-end. Could you try and let me know? (once again I think it should be fine if you use something like webpack )

anvk avatar Sep 05 '18 14:09 anvk

Actually, using create-react-app it works, but I was helping a friend debug his app, and it was failing at that part.

I was getting CORS issues though from my front-end code.

andrewhartwig avatar Sep 05 '18 14:09 andrewhartwig