facebookarchive / react-page

Easy Application Development with React JavaScript
Apache License 2.0
797 stars 72 forks source link

Uncaught Error on localhost (local machine) #57

Closed svagi closed 7 years ago

svagi commented 10 years ago

I have trouble running clean react-page clone on local machine. It always throws this exception in client chrome console:

Uncaught Error Requiring unknown module "es5-shim/es5-shim.js" E:\react-page\node_modules\react-page-middleware\polyfill\require.js:187

On server runs everything ok.

jordwalke commented 10 years ago

What operating system are you using?

svagi commented 10 years ago

Windows 8.1

jordwalke commented 10 years ago

react-page has basic support OSX and Linux (it mentions on the README). I'd love if someone would get windows 8.1 support working. There may be some stuff that incorrectly depends on a particular file system path formatting, instead of using require('path'). Feel free to dig in.

svagi commented 10 years ago

Oh, I did't notice. Well, I searched a bit and one solution might be not to use es5-shim. You can then run react-page on Windows just fine (sure, without es5-shim functionality).

jordwalke commented 10 years ago

Really? I know we had some server issues with Windows, but it looks like those may have been fixed! That's great, now I can get a sweet MS Surface :) Can you figure out why es5-shim is failing on windows?