Closed daslicht closed 8 years ago
Here is the generated package json:
{
"name": "isomorphic",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.14.1",
"express": "^4.13.3",
"jquery": "^2.1.4",
"jsrender": "0.0.3",
"serve-favicon": "^2.3.0"
}
}
My node version:
node -v
v4.2.2
nvm --version
0.29.0
npm --version
2.14.7
I installed all dependencies like the following:
npm init
npm install body-parser --save
npm install jsrender --save
...
with the latest jsrender i no longer have that issue
Unfortunately there is a bug in npm prior to 3.4.1 that installs a very very old version rather than the latest. See https://github.com/BorisMoore/jsrender/issues/278. So until now you will have been missing a huge number of JsRender features.
This error happended to me and i realized that it was missing a "require" for ('consolidate')
@iguerrero84 - I didn't understand you there. Were you getting the JsRender version 0.0.3 as a result of having a version of npm prior to 3.4.1? In that case you need to update npm then re-install JsRender.
Or was your error with a recent version of JsRender? (In which case can you explain where the require was missing - I don't follow.)
Hi, when I add the viewengine to express like the following:
I get this error:
It is teh same code as in your example, what am I missing please?