Giter Club home page Giter Club logo

Comments (4)

dougwilson avatar dougwilson commented on August 12, 2024 3

Also, I see based on the error message, Express is looking in the folder "XXX\web-server\src\views" but the structure you show has the views folder outside of the src folder. You can either change Express to look in the right folder or move your views folder where Express is looking for it at.

from hbs.

vishwas-yadav-cell avatar vishwas-yadav-cell commented on August 12, 2024 2

bro there is no module problem its your problem i m also facing this problem but now i fix this nd this was very silly mistake made by me and you so solution is : currently you are running your server in XXX\web-server\src\views you have to move views from src to web-server directory and then shift terminal to webserver directory (XXX\web-server>) and then run this command --->node src/FileName.js .i hope your problem would solve. if not then comment me out...

from hbs.

dougwilson avatar dougwilson commented on August 12, 2024

You have to actually create the index.hbs file. This module will simply render the files that you create. If you haven't created any, then that would be why you're having that error.

The error is actually coming from Express and not from this module, though. If you need more help, you may want to open the issue at Express, which also has more people who can help (I am away currently).

from hbs.

jenisgadhiya avatar jenisgadhiya commented on August 12, 2024

bro there is no module problem its your problem i m also facing this problem but now i fix this nd this was very silly mistake made by me and you so solution is : currently you are running your server in XXX\web-server\src\views you have to move views from src to web-server directory and then shift terminal to webserver directory (XXX\web-server>) and then run this command --->node src/FileName.js .i hope your problem would solve. if not then comment me out...

thanx bro...for this solution

from hbs.

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.