Giter VIP home page Giter VIP logo

Comments (4)

kirbysayshi avatar kirbysayshi commented on August 27, 2024

@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.

venelinpetrov avatar venelinpetrov commented on August 27, 2024

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.

kirbysayshi avatar kirbysayshi commented on August 27, 2024

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.

kirbysayshi avatar kirbysayshi commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.