Over the last few days, sometimes when I publish to localhost/web, the compile fails because firebase is not found.
my package config contains this
When I delete the directory and run it again, it installs properly.
I did have an out of memory crash the other day, the project file could be corrupt.
I will work toward how to recreate this, in the meantime, any thoughts?
There could be quite many reasons why npm install fails. It could be that your npm is somehow broken or some issues with file permissions. I’d suggest to delete the npm package directory (or whole exported project directlry) and then just re-export the code in case of npm issues.
Here’s a list of common errors: https://docs.npmjs.com/common-errors
Basically Studio does not do any “magic” than triggers the “npm install” when you click Open in Browser.
So it turns out that I am using a custom template on the website.
And the template was created before I started using firebase, so the package.json file does not reference firebase!
That makes sense! It’s easy to forget the custom template once it’s set…