Sirine Chebil
Sirine Chebil

Reputation: 1

Node.js - EJS - including a partial : error : Could not find the include file "partials/navbar.ejs" in nodejs app

Could not find the include file "partials/navbar.ejs" in nodejs app

about Node.js - EJS - including a partial

Could not find the include file "partials/navbar.ejs" in nodejs app

about Node.js - EJS - including a partial

Upvotes: 0

Views: 63

Answers (2)

Muthukumar K
Muthukumar K

Reputation: 508

It look like your Node.js application is having trouble to locating the partial file "partials/navbar.ejs".

Please check the below steps to ensure everything is as expected.

  • Double-check the file path.
  • Verify file extension and its should be .ejs file format.
  • Check file permissions.
  • Restart the server if you did any changes in the application file.
  • Try to put some logs to debug more in details.

Still encountering issues, providing more details about your directory structure and the code where you're including the partial would be helpful for further assistance.

Upvotes: 0

Sirfara
Sirfara

Reputation: 3

I believe this question needs more information in order to be answered. In any case, a similar issue was reported here. I hope it helps.

Upvotes: 0

Related Questions