Skip to content

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

@Anil-bohorya

Description

@Anil-bohorya

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions