Blrplt is a relatively small boilerplate for React + Redux projects that takes care of server-side-rendering and prefetching API calls with redux-saga. Also, AWS Serverless.
I am facing issues in app.jsx when i update react-router to the latest version.
ServerRouter is removed from the new version of react-router.
Also is it possible to add old plain routes in this new router? since i am new to react, i couldnt able to grab the things properly. Only this repo seems understandable and working nicely.
Hi @happylinks, thanks for putting together this boilerplate. I am having testing my build with your webpack files. I thought nodeExternals is supposed to exclude these folders for the server side rending? Do you have any suggestions on how I can get around this?
I am getting this error when I run 'yarn run start:dist'
/Users/prabhaav/Development/blrplt: yarn run start:dist
yarn run v0.18.1
$ node ./build/server.js
/Users/prabhaav/Development/blrplt/node_modules/hellojs/dist/hello.all.js:206
redirect_uri: window.location.href.split('#')[0],
^
ReferenceError: window is not defined
at Object. (/Users/prabhaav/Development/blrplt/node_modules/hellojs/dist/hello.all.js:206:17)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/Users/prabhaav/Development/blrplt/build/server.js:1986:18)
at webpack_require (/Users/prabhaav/Development/blrplt/build/server.js:21:30)
error Command failed with exit code 1.