Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Anil-bohorya opened this issue Jan 6, 2018 · 1 comment

Comments

@Anil-bohorya
Copy link

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.

@vickrant
Copy link

vickrant commented Sep 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants