You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"code":3,"message":"Build failed: (node:96) Warning: To load an ES module, set \"type\": \"module\" in the package.json or use the .mjs extension.\n(Use `node --trace-warnings ...` to show where the warning was created)\n/workspace/index.js:1\nimport functions from 'firebase-functions'\n^^^^^^\n\nSyntaxError: Cannot use import statement outside a module\n at Object.compileFunction (node:vm:352:18)\n at wrapSafe (node:internal/modules/cjs/loader:1031:15)\n at checkSyntax (node:internal/main/check_syntax:66:3)\n at node:internal/main/check_syntax:39:3; Error ID: d984e68f"}}
...
Functions deploy had errors with the following functions:
test(us-central1)
[2022-01-15T09:47:19.396Z] Missing URI for HTTPS function in printTriggerUrls. This shouldn't happen
i functions: cleaning up build files...
[2022-01-15T09:47:19.398Z] >>> [apiv2][query] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/[PROJECT]/locations/us-central1/repositories/gcf-artifacts/packages/test [none]
[2022-01-15T09:47:19.399Z] >>> [apiv2][query] GET https://us.gcr.io/v2/[PROJECT]/gcf/us-central1/tags/list [none]
[2022-01-15T09:47:20.003Z] <<< [apiv2][status] GET https://us.gcr.io/v2/[PROJECT]/gcf/us-central1/tags/list 200
[2022-01-15T09:47:20.003Z] <<< [apiv2][body] GET https://us.gcr.io/v2/[PROJECT]/gcf/us-central1/tags/list {"child":[],"manifest":{},"name":"[PROJECT]/gcf/us-central1","tags":[]}
[2022-01-15T09:47:20.003Z] Could not find image for function projects/[PROJECT]/locations/us-central1/functions/test
[2022-01-15T09:47:20.415Z] <<< [apiv2][status] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/[PROJECT]/locations/us-central1/repositories/gcf-artifacts/packages/test 404
[2022-01-15T09:47:20.415Z] <<< [apiv2][body] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/[PROJECT]/locations/us-central1/repositories/gcf-artifacts/packages/test {"error":{"code":404,"message":"Repository does not exist: \"projects/[PROJECT]/locations/us-central1/repositories/gcf-artifacts\"","status":"NOT_FOUND"}}
[2022-01-15T09:47:20.419Z] Error: Failed to update function test in region us-central1
at /Users/stefan/.nvm/versions/node/v16.13.2/lib/node_modules/firebase-tools/lib/deploy/functions/release/fabricator.js:38:11
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Fabricator.updateV1Function (/Users/stefan/.nvm/versions/node/v16.13.2/lib/node_modules/firebase-tools/lib/deploy/functions/release/fabricator.js:255:32)
at async Fabricator.updateEndpoint (/Users/stefan/.nvm/versions/node/v16.13.2/lib/node_modules/firebase-tools/lib/deploy/functions/release/fabricator.js:136:13)
at async handle (/Users/stefan/.nvm/versions/node/v16.13.2/lib/node_modules/firebase-tools/lib/deploy/functions/release/fabricator.js:75:17)
Error: There was an error deploying functions
The text was updated successfully, but these errors were encountered:
[REQUIRED] Environment info
firebase-tools:
10.1.0
Platform:
MacOS 12.1
[REQUIRED] Test case
index.js
package.json
[REQUIRED] Steps to reproduce
firebase deploy --only functions
[REQUIRED] Expected behavior
Function
test
deploying.[REQUIRED] Actual behavior
Console error:
The text was updated successfully, but these errors were encountered: