Open 0x0ece opened 8 years ago
I have the same issue using React Starter Kit
I'm having the same issue using ES6 ParseComponent and:
"react": "^0.14.0",
"parse": "^1.6.0",
"parse-react": "^0.5.0",
The app works correctly if I navigate to the page, but if I refresh it i get:
Error: Cannot make a request: No definition of XMLHttpRequest was found.
at dispatch (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:53799:16)
at Object.ajax (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:53847:6)
at ParsePromise.<anonymous> (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:53916:30)
at ParsePromise.wrappedResolvedCallback (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:49007:42)
at /home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:49068:36
at runLater (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:49052:13)
at ParsePromise.then (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:49067:10)
at Object.request (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:53909:9)
at Object.find (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:51682:28)
at ParseQuery.find (/home/matteo/dev/tony-backoffice-react/public/js/app/app.node.js:50829:26)
Repro:
If the page is rendered client side it works (e.g., refresh the home, click on the about page)
If the page is rendered serve side it crashes (e.g., refresh the about page):
Including
parse/node
partially solve in the sense that it no longer crashes, but observe doesn't work: