Code Monkey home page Code Monkey logo

Comments (5)

ghvaldez avatar ghvaldez commented on May 16, 2024

Hello @vorticalbox I just completed the getting started and chat tutorial found here I was able to the last step and run the app locally via node . step. Where exactly did you run into this error?

from server.

ghvaldez avatar ghvaldez commented on May 16, 2024

@vorticalbox ahh I see now what you were trying to do. Maybe I have different settings for my local install of node but I saw this error in my console.

    at Function.render (/Users/gvaldez/Documents/development/server-test/node_modules/express/lib/application.js:580:17)
    at ServerResponse.render (/Users/gvaldez/Documents/development/server-test/node_modules/express/lib/response.js:1008:7)
    at Promise (/Users/gvaldez/Documents/development/server-test/node_modules/server/reply/reply.js:124:13)
    at Promise (<anonymous>)
    at stack.push.ctx (/Users/gvaldez/Documents/development/server-test/node_modules/server/reply/reply.js:121:26)
    at Reply.exec (/Users/gvaldez/Documents/development/server-test/node_modules/server/reply/reply.js:157:11)
    at processReturn (/Users/gvaldez/Documents/development/server-test/node_modules/server/src/join/index.js:11:22)
    at /Users/gvaldez/Documents/development/server-test/node_modules/server/src/join/index.js:41:17
    at <anonymous>
  view:
   View {
     defaultEngine: 'pug',
     ext: '.html',
     name: 'rules.html',
     root: '/Users/gvaldez/Documents/development/server-test/views',
     engine: [Function: bound middleware],
     path: undefined } }

After adding a directory named views as a peer to public aka at the root of the project and moved the rules.html file there....everything works

from server.

franciscop avatar franciscop commented on May 16, 2024

@vorticalbox could you share your project file structure please? Does the error happen on startup, on an specific page or on all pages?

from server.

vorticalbox avatar vorticalbox commented on May 16, 2024

I had everything in one folder but after the advice of ghvaldez I moved my HTML into /views and all is working great now :)

from server.

franciscop avatar franciscop commented on May 16, 2024

That is great! Thanks for letting me know

from server.

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.