Ok so I am ripping my hair out for this...
For some reason even though I have followed all of the necessary instructions for firebase cloud functions I can't deploy I get the error message:
Build failed: Specified version range of module @firebase/app is not a string
But I can't see where this specified version range should not be a string? I have looked in the package.json but can't see where it should be wrong:
"@firebase/app": {
"version": "0.1.6",
"resolved": "https://registry.npmjs.org/@firebase/app/-/app-0.1.6.tgz",
"integrity": "sha512-zvA+Tsc6lmuMYmDYsgoXpmPzzLLhdeH97/UVN79YGlFqCihrYAaKUi1/osoAhjXPZaV1+TXoqiSEB2vWHU7Puw==",
"requires": {
"@firebase/app-types": "0.1.1",
"@firebase/util": "0.1.6"
}
}
I am also guessing that it is only because this is the first module that this error shows up, something seems fundamentally wrong.
I had to install npm modules through sudo, could this be the problem? it created a locked package-locked.json file which I renamed "package.json" to just be able to deploy at all.
Thanks in advance!
package.json? If so, that's your problem. Dependencies need to be declared like:{"dependencies": {"@firebase/app": "^0.1.6"}}not as a nested object as you pasted. - Michael Bleigh