GithubHelp home page GithubHelp logo

eslachance / carrots Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 906 KB

An express.js blog platform with enmap(sqlite) storage back-end, ejs templating, and simple to follow code source.

License: Apache License 2.0

JavaScript 51.71% CSS 10.02% Hack 0.03% EJS 38.24%

carrots's Issues

cannot read property name of null

Error:

17-09-2020 12:01:05 | ::1 | /install
17-09-2020 12:02:06 | ::1 | /install
17-09-2020 12:02:06 | ::1 | /
1 string
TypeError: /Users/logandevine/Documents/GitHub/carrots/pages/index.ejs:3
    1| <%- include('blocks/header', {path, auth, settings}) %>
    2| 			<% articles.forEach(el => {%>
 >> 3| 				<div class="post-info"><a href="/user/<%= el.user.username %>"><%= el.account.name %></a> - <span class="longdate"><%= el.date %></span></div>
    4| 				<article class="post">
    5| 					<header><a href="/view/<%= el.id %>"><%= el.title %></a></header>
    6| 					<main class="post"><%- el.rendered %></main>

Cannot read property 'name' of null
    at eval (/Users/logandevine/Documents/GitHub/carrots/pages/index.ejs:16:37)
    at Array.forEach (<anonymous>)
    at eval (/Users/logandevine/Documents/GitHub/carrots/pages/index.ejs:11:17)
    at index (/Users/logandevine/Documents/GitHub/carrots/node_modules/ejs/lib/ejs.js:682:17)
    at tryHandleCache (/Users/logandevine/Documents/GitHub/carrots/node_modules/ejs/lib/ejs.js:254:36)
    at View.exports.renderFile [as engine] (/Users/logandevine/Documents/GitHub/carrots/node_modules/ejs/lib/ejs.js:485:10)
    at View.render (/Users/logandevine/Documents/GitHub/carrots/node_modules/express/lib/view.js:135:8)
    at tryRender (/Users/logandevine/Documents/GitHub/carrots/node_modules/express/lib/application.js:640:10)
    at Function.render (/Users/logandevine/Documents/GitHub/carrots/node_modules/express/lib/application.js:592:3)
    at ServerResponse.render (/Users/logandevine/Documents/GitHub/carrots/node_modules/express/lib/response.js:1012:7)

(Fresh install)

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.