DEV Community

Discussion on: functions/lib/index.js does not exist, can't deploy Cloud Functions

Collapse
 
methodician profile image
Jacob Johnston

Awesome! This must be the fourth or fifth time I have been all like "WTF" and needed this fix, but each time separated by years so I needed to go searching for it. For me it comes from a love of strong typing and wanting to share models between the front end and back end code. It fails to deploy and I remember that this practice changes my compiled functions file structure, then go searching around the firebase config files trying to fix it. For some reason I always forget that it comes from package.json even though the error seems to indicate that. I guess more causes than just deploying a monorepo, but same basic fix.

Collapse
 
ariel profile image
MNSV~スロー

how you do it?