-
Notifications
You must be signed in to change notification settings - Fork 7
Description
HI, thank you for this example!
I'm trying to update this example to use the latest versions of the packages you use.
I ditched jsx-loader and used babel instead, replaced "require('node-jsx').install();" with "require('babel/register')({});" and updated the packages you use one-by one to their latest versions.
specifically:
"dependencies": {
"babel": "^5.8.29",
"browserify": "^12.0.0",
"compression": "^1.6.0",
"express": "^4.13.3",
"history": "^1.12.6",
"minifyify": "^7.1.0",
"react": "^0.14.0",
"react-engine": "^2.4.0",
"react-router": "^1.0.0-rc3",
"reactify": "^1.1.1",
"require-globify": "^1.3.0"
}
Then i tried running your demo and got the following message:
Error: asking to use react router for rendering, but no routes are provided
at ReactEngineView.render (/Users/Ajar/Downloads/react-engine-demo-master/node_modules/react-engine/lib/server.js:102:19)
at ReactEngineView.render (/Users/Ajar/Downloads/react-engine-demo-master/node_modules/react-engine/lib/expressView.js:51:10)
at tryRender (/Users/Ajar/Downloads/react-engine-demo-master/node_modules/express/lib/application.js:639:10)
at EventEmitter.render (/Users/Ajar/Downloads/react-engine-demo-master/node_modules/express/lib/application.js:591:3)
at ServerResponse.render (/Users/Ajar/Downloads/react-engine-demo-master/node_modules/express/lib/response.js:961:7)
at /Users/Ajar/Downloads/react-engine-demo-master/index.js:71:7
What does this mean? I ran the react-engine examples too and they didn't work...
what needs to be done in order to make this demo to work?
Did you try to use webpack instead of browserify?
Thank you
Ajar