radu-snappy's avatar

radu-snappy wrote a reply+100 XP

3w ago

Tl;Dr; if storage/framework/views doesn't exist and you didn't change the defaults, config('view.compiled') will return false and this error will happen.

This happened to me today because the way I deploy code to servers involves as "shared" folder with the .env file and storage directory structures, which I symlink into fresh git clones. But it was a fresh setup, so "storage" was empty. I was surprised that Laravel didn't just create the directory.