Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

Failed to lookup view index.js in directory — krakenjs

Framek­work: Krak­enjs

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

You cre­ated your appli­ca­tion using the yeo­man gen­er­a­tor for krak­enjs. But when you run start your server with NODE_ENV=production you see the above error.

Thats because the app looks for the appro­pri­ate files to ren­der in the .build direc­tory. The solu­tion is to build your project before run­ning node. The starter kit already comes with a grunt build task for your convenience.

grunt build && node server.js

You prob­a­bly want to include this as part of your npm scripts.


Ryan Sukale

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