Closed xn1cklas closed 10 months ago
This issue does not seem to follow the issue template. Make sure you provide all the required information.
Thanks for reporting this. It seems that several files like functionspackage.json were meant to be functions/package.json @paulinon submitted a fix for this, so you should be able to pull the latest version of the quickstart and then npm should detect the functions folder as a valid node project.
For your second issue, if the first issue prevented you from deploying the sample function, then it makes sense that addNumbers would have failed. The file .functions/functions/index.js defines a method named addNumbers, and after you have deployed this to your firebase project, when you run the testapp it will ask the server to run the addNumbers function, which will only work if it has already been deployed.
Feel free to re-open if the current fix was not sufficient.
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Actually, I ran into two errors, not sure if they are connected. If not, I can move one to a separate issue.
NPM installation failed
Following the instructions from quickstart-unity/functions/testapp/readme.md
This does not work. THere is no functions in Assets/Firebase/Sample/Functions/.functions
npm install
doesn't work in neither of them, even though there are functionspackage.json they cannot be read by node/npm.Error:
Unity cloud function example
add number
not workingSteps to reproduce: