dglozic / react-engine-demo Goto Github PK
View Code? Open in Web Editor NEWA demo app to accompany dejanglozic.com blog post
License: MIT License
A demo app to accompany dejanglozic.com blog post
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.