angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Cannot read property 'name' of null #3747

Closed dk122809 closed 4 years ago

dk122809 commented 5 years ago

TypeError: C:\Users\sam\Desktop\yelp_camp\views\show.ejs:3 1| <% include partials/header %>

2| 

3|

<%= camps.name %>

4| 

5| <img src="<%= camps.image %>">

6| <p><%= camps.description %></p>

Cannot read property 'name' of null at eval (eval at compile (C:\Users\sam\Desktop\yelp_camp\node_modules\ejs\lib\ejs.js:618:12), :22:32) at returnedFn (C:\Users\sam\Desktop\yelp_camp\node_modules\ejs\lib\ejs.js:653:17) at tryHandleCache (C:\Users\sam\Desktop\yelp_camp\node_modules\ejs\lib\ejs.js:251:36) at View.exports.renderFile [as engine] (C:\Users\sam\Desktop\yelp_camp\node_modules\ejs\lib\ejs.js:482:10) at View.render (C:\Users\sam\Desktop\yelp_camp\node_modules\express\lib\view.js:135:8) at tryRender (C:\Users\sam\Desktop\yelp_camp\node_modules\express\lib\application.js:640:10) at Function.render (C:\Users\sam\Desktop\yelp_camp\node_modules\express\lib\application.js:592:3) at ServerResponse.render (C:\Users\sam\Desktop\yelp_camp\node_modules\express\lib\response.js:1008:7) at C:\Users\sam\Desktop\yelp_camp\app.js:66:8 at C:\Users\sam\Desktop\yelp_camp\node_modules\mongoose\lib\model.js:4518:16 at (anonymous function).call (C:\Users\sam\Desktop\yelp_camp\node_modules\mongoose\lib\query.js:3795:7) at model.Query.Query._completeOne (C:\Users\sam\Desktop\yelp_camp\node_modules\mongoose\lib\query.js:1878:12) at Immediate.Query.base.findOne.call (C:\Users\sam\Desktop\yelp_camp\node_modules\mongoose\lib\query.js:1938:10) at Immediate._onImmediate (C:\Users\sam\Desktop\yelp_camp\node_modules\mquery\lib\utils.js:116:16) at runCallback (timers.js:810:20) at tryOnImmediate (timers.js:768:5)

I GOT THIS PROBLEM

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.