Failed to lookup view index.js in directory – krakenjs

Framekwork: Krakenjs

Error: Failed to lookup view “index.js” in directory

You created your application using the yeoman generator for krakenjs. But when you run start your server with NODE_ENV=production you see the above error.

Thats because the app looks for the appropriate files to render in the .build directory. The solution is to build your project before running node. The starter kit already comes with a grunt build task for your convenience.

grunt build && node server.js

You probably want to include this as part of your npm scripts.


Ryan Sukale

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

Leave a Reply

Your email address will not be published.