question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: An unexpected error has occurred. • TypeError: Cannot read property 'wanted' of undefined

See original GitHub issue

firebase-tools: 7.0.2

Platform: macOS

Deploying a website to firebase hosting stopped working.

firebase deploy --only hosting

Hosting successful.

Hosting fails.

[2019-07-04T15:46:39.915Z] ---------------------------------------------------------------------- [2019-07-04T15:46:39.918Z] Command: /Users/Azlan_Mac/.nvm/versions/node/v12.3.1/bin/node /Users/Azlan_Mac/.nvm/versions/node/v12.3.1/bin/firebase deploy --only hosting --debug [2019-07-04T15:46:39.918Z] CLI Version: 7.0.2 [2019-07-04T15:46:39.918Z] Platform: darwin [2019-07-04T15:46:39.918Z] Node Version: v12.3.1 [2019-07-04T15:46:39.919Z] Time: Thu Jul 04 2019 23:46:39 GMT+0800 (Malaysia Time) [2019-07-04T15:46:39.919Z] ----------------------------------------------------------------------

[2019-07-04T15:46:39.928Z] > command requires scopes: [“email”,“openid”,“https://www.googleapis.com/auth/cloudplatformprojects.readonly",“https://www.googleapis.com/auth/firebase”,"https://www.googleapis.com/auth/cloud-platform”] [2019-07-04T15:46:39.928Z] > authorizing via signed-in user [2019-07-04T15:46:39.929Z] [iam] checking project mydaypwaapp for permissions [“firebase.projects.get”,“firebasehosting.sites.update”] [2019-07-04T15:46:39.930Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/mydaypwaapp:testIamPermissions
permissions=[firebase.projects.get, firebasehosting.sites.update] [2019-07-04T15:46:41.155Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 04 Jul 2019 15:46:41 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, server-timing=gfet4t7; dur=1100, alt-svc=quic=“:443”; ma=2592000; v=“46,43,39”, accept-ranges=none, transfer-encoding=chunked [2019-07-04T15:46:41.157Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/mydaypwaapp

[2019-07-04T15:46:41.471Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 04 Jul 2019 15:46:41 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=“:443”; ma=2592000; v=“46,43,39”, accept-ranges=none, transfer-encoding=chunked [2019-07-04T15:46:42.874Z] TypeError: Cannot read property ‘wanted’ of undefined at /Users/Azlan_Mac/.nvm/versions/node/v12.3.1/lib/node_modules/firebase-tools/lib/checkFirebaseSDKVersion.js:37:51 at processTicksAndRejections (internal/process/task_queues.js:89:5)

Error: An unexpected error has occurred.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:26 (8 by maintainers)

github_iconTop GitHub Comments

22reactions
mazlano27commented, Jul 5, 2019

@prescottpure After some guidance from firebase support - we identified that npm 6.10 was causing this issue for me. Downgrading to 6.9.2 fixed it for me. Maybe that’s the same for you?

20reactions
prescottpruecommented, Jul 5, 2019

@mazlano27 that did the trick, thanks for posting! @brunovig you should give that a try (npm i -g npm@6.9.2)

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - TypeError: Cannot read property 'wanted' of undefined
I have tried updating npm permission by making my own user the owner of the node_modules, bin, and share directories. I have tried...
Read more >
How to Read React Errors (fix 'Cannot read property of ...
Cannot read property means the code was trying to read a property. This is a good clue! There are only a few ways...
Read more >
An unexpected error occurred in Octopus v2022.2.6729
The "An unexpected error occurred in Octopus v2022.2.6729: “TypeError: Cannot read properties of undefined (reading 'StartTime')” error is ...
Read more >
Solved: Renaming Widget Error: Cannot read property 'widge...
My project has 2 custom widgets that I developed, but only one of them fails. A third widget that also fails is simply...
Read more >
Cannot read property 'ARMenus' of undefined - Discussion
Error in Midtier after publishing it through internet - Cannot read property 'ARMenus' of undefined · Alert: Caught exception undefined:undefined - TypeError:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found