New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: An unexpected error has occurred. • TypeError: Cannot read property 'wanted' of undefined #1469
Comments
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information. |
Also seeing this issue when trying to deploy cloud functions. I believe this is the line causing the issue |
@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? |
Same happens to me when deploying functions: firebase deploy --only functions firebase-tools: 7.0.2 |
@mazlano27 that did the trick, thanks for posting! @brunovig you should give that a try ( |
Life saver @mazlano27 |
@prescottprue works for me as well. Thanks. |
Thanks all for identifying the problematic line and finding a workaround! |
I'll take a look at this this week, I hope. Thanks b/137017689 |
It looks like the output of |
Well I guess I'm the lucky one: |
Thanks. This worked for me too. Looks like npm version 6.10 has some issues due to which cloud functions can not be deployed. |
This has been mitigated in |
Getting this error for both functions and hosting deployments after upgrading to npm 6.10.1 and firebase-tools 7.2.2. So far no luck with rollbacks. |
rolled back to npm 6.9.2 and it's working. Firebase -V is also 6.8.0 |
The fix for me was to install node/10.16.3. Also now using firebase 7.0.2. |
Can we reopen this, I'm getting the problem again with:
The error:
[edit] Upgrading to node 10.16.3 (or 12) didn't work. [edit] ... more problems:
|
@npomfret sorry you're having trouble. First, I see two errors there: one about property Your logs indicate to me that you're running the Without more information, it's hard to say what's going on. I cannot replicate your issue, but it looks like the |
I've run:
If that's what you mean? The command I'm running to redeploy my website is:
|
@npomfret are you running However, it looks like the |
I'm using the command exactly as described above: There is no package.json in this case, I'm just deploying hosting so there's only really |
...solved sort of. There are some firebase functions present. I deleted them and that allowed the hosting deployment to succeed. Ugh. I hate node. @bkendall thanks for helping |
@npomfret 👍 glad you figured it out! |
Guys this issue is still happening... on Hosting only no problem,, but if I added the functions to the firebase project I get the error as u see in the photo So basically a firebase project that has both functions and hosting.. when running If I removed functions folder ,, it works like charm.... this thing drives me crazy.. |
I was having this issue too. Thanks @bdairy. Removing the functions folder worked for me too. both |
I have an Issue too but this time it's Getting project... I wanted to HTMLify this: https://scratch.mit.edu/projects/554343455/editor |
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.
The text was updated successfully, but these errors were encountered: