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

Failed to lookup view "index" in views directory "/views" #21

Open
matt-peck opened this issue Feb 17, 2020 · 1 comment
Open

Failed to lookup view "index" in views directory "/views" #21

matt-peck opened this issue Feb 17, 2020 · 1 comment

Comments

@matt-peck
Copy link

I can run the express app locally and as a serverless wrapped app with netlify dev, but as soon as I add view engine settings to express, it continues to work locally as a standard express app but no longer works in the serveless form with netlify dev.

Error is:
Failed to lookup view "index" in views directory "/views"

Here's the file:
https://github.com/matt-peck/netlify-express/blob/master/express/server.js

@zahqresh
Copy link

Your error means basically it cannot find the view directory. This error can be fixed by giving a correct path to the view directory

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