Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Parse doesn't work on webpack client side in production build #73

Closed
jeffyuans opened this issue Apr 28, 2015 · 0 comments
Closed

Parse doesn't work on webpack client side in production build #73

jeffyuans opened this issue Apr 28, 2015 · 0 comments

Comments

@jeffyuans
Copy link

var xhr = new Parse.XMLHttpRequest();
^
TypeError: undefined is not a function

I had the above error when I tried to use parse in my webpack project. The project works fine in dev build. I doubt it is because the npm parse library should be used on the server side instead of the front end. Googling suggests calling <script src="//www.parsecdn.com/js/parse-1.4.2.min.js"></script> might be the key to solve this but I don't think I can do this in webpack? Is there way I can change the backend server of my webpack project to invoke calls related to parse? i.e my front end will communicate back the data to the backend to invoke the calls that are related to parse.

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant