Comments (4)
@venelinpetrov could you try installing vash via npm install --save vash@beta
, and post any problems you have here? The beta version attempts to make these errors more clear.
from vash.
Thank you for the response. Here is the error and the stack trace after installing the mentioned version:
TypeError: Property 'engine' of object # is not a function
at View.render (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\view.js:76:8)
at Function.app.render (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\application.js:527:10)
at ServerResponse.res.render (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\response.js:900:7)
at module.exports (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\app.js:54:9)
at Layer.handle_error (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\router\layer.js:58:5)
at trim_prefix (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\router\index.js:268:13)
at proto.handle.c (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\router\index.js:237:9)
at Function.proto.process_params (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\router\index.js:312:12)
at proto.handle.c (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\router\index.js:228:12)
at Function.match_layer (C:\Users\veni\documents\visual studio 2012\Projects\NodeExpressHomework\NodeExpressHomework\node_modules\express\lib\router\index.js:295:3)
Are you able to replicate the same issue at your end using the setup and code from the screenshot? If you need more info I'll do my best to provide such, but the scenario is really simple (i.e. directly taken from the documentation).
Thanks again.
from vash.
I think this is a misconfiguration of express, not vash. Could you post your express config, specifically the part where you register vash as the view engine?
from vash.
Ok, I haven't heard anything in several months. I'm going to close this issue. If you are still having troubles or want to provide more info, please reopen!
from vash.
Related Issues (20)
- Feature Request: Add support for render method HOT 5
- How to make multiple includes for the same component work? HOT 2
- <a> is not considered a void tag, should it?
- ..
- vash block error with koa HOT 6
- Vash HOT 2
- @foreach razor syntax HOT 3
- Conditions inside templates HOT 1
- <a href="@item.html">... HOT 3
- Missing output when using if/else if/else followed by another if HOT 3
- Use syntax highlighting in README.md HOT 1
- Output for blocks with the commandline tool or compile API HOT 2
- [question] How to use vash.helpers.include HOT 1
- Is this library no longer developing? HOT 2
- UnclosedNodeError: Found unclosed VashMarkup HOT 2
- Add Support for Tag Helpers
- Add support for compile file
- Trying to get in touch regarding a security issue HOT 2
- Add TypeScript definitions
- Error running the CodePen playground
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vash.