-
Notifications
You must be signed in to change notification settings - Fork 378
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
TypeError: Cannot assign to read only property 'toJSON' of object 'Error' #215
Comments
Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight. |
Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information. |
What happens if you try this without loopback? |
Sorry, that does not compute. This is a loopback application (basically it's a express application). I can't just run the car without the motor. |
Try it without loopback to see if it's a loopback-specific issue. |
Alright, so I tried this simply (in an extra file 'foo.js')
And I got no exception when calling
|
So far we have only received this one report about this problem. Since the problem appears to be specific to the Loopback environment, I think we need somebody from that project to take a look. If somebody thinks this is something that can be fixed in firebase-admin, please provide some details on the diagnosis and the fix, so we can follow up. |
I am also seeing this error. Not a loopback application, just a regular babel and webpack application. Using Latest firebase-admin. |
I also have this issue, it appears that it's linked with the usage of 'use strict' mode. I found some info on this mozzila dev network link. Can strict mode be used alongside firebase admin? |
Hey @abdurahmanadilovic. Do you have a repro for this issue? Ideally something that just uses TypeScript and no other frameworks? The original reporter of this issue could only repro the problem on Loopback. |
I used this command to figure out where grep -r 'Object.defineProperty(Error.*' . It was in my application code and not in any package. I just added
@JuergenSimon, @reactor81 can you please run the grep command and check where is |
[REQUIRED] Step 3: Describe the problem
Installed firebase-admin using instructions here: https://www.npmjs.com/package/firebase-admin
Added firebase-admin to a module as instructed using:
in a module in a loopback node application. Application fails to start with the following error:
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
Relevant Code:
The text was updated successfully, but these errors were encountered: