mean-stack-angular5-crud icon indicating copy to clipboard operation
mean-stack-angular5-crud copied to clipboard

Error: No default engine was specified and no extension was provided.

Open Anil-bohorya opened this issue 8 years ago • 1 comments

Working fine when redirected from 'http://localhost:4000/books' to 'http://localhost:4000/book-details/5a504218db1db3121100c215' by clicking show-details

But when refresh 'http://localhost:4000/book-details/5a504218db1db3121100c215' page disappear and error shown:

Error: No default engine was specified and no extension was provided. at new View (/Users/Username/Downloads/mean5/mean-stack-angular5-crud/node_modules/express/lib/view.js:61:11) at Function.render (/Users/Username/Downloads/mean5/mean-stack-angular5-crud/node_modules/express/lib/application.js:570:12) at ServerResponse.render (/Users/Username/Downloads/mean5/mean-stack-angular5-crud/node_modules/express/lib/response.js:1008:7)

i tried to console inside book-detail.component.ts

ngOnInit() { console.log(this.route.snapshot.params['id']); this.getBookDetail(this.route.snapshot.params['id']); }

but nothing in shown in console.

Please help.

Anil-bohorya avatar Jan 06 '18 04:01 Anil-bohorya

add the following line too app.use('', book);

vickrant avatar Sep 02 '18 14:09 vickrant