-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Cannot set property EntityManager of #<Object> which has only a getter #6054
Comments
Seeing this as well on new CI builds only in the last few hours. Hadn't made any changes at all. So maybe it's a dependency updated somewhere? |
TSLib behavior change and other folks having problems with it have been reported there: |
Temporary workaround:
|
Had this problem today when installing dependencies, rolled back to a previous |
I have some problem... some solution?? ... for us in new version... Thanks |
I have the same problem. Any solution? Thx |
I have the same problem. This is fantastic! |
Still diagnosing but in case this helps someone, it appears that even locking to |
This is work fine or use in CI TypeORM from project (not installed globally) |
Also can confirm that |
I am also having the same issue. The workaround, however, is not working for me |
I have the same problem. |
Ehr, I can confirm that npm works fine, yarn breaks. Weird. |
Edit your package.json at your project root directory to avoid using latest version of tslib
|
@possible819 you've saved my time. |
you can keep typescript 3.9.2 this seems to work |
Have the same problem. I could not solve my problem, either if I used npm or yarn, and added with the correct syntax the version in the |
Okay, I fixed it and with yarn!!! After adding
Important: If you install Finally, I fixed it and everything works correctly right now! Thank you for the support guys. |
@possible819 Thanks legend!! |
Your welcome. Always nice to help, if I have the solution why I do not let others to solve their issues too! |
Is there a way to fix this without using yarn? |
@sephirothmk you could - in the meantime - install tslib manually and fix it to the 1.11.2 version. |
Yarn users can also try a semver range that explicitly excludes Also, a friendly reminder that it's never really a good idea to pin a version of a core library (like tslib) forever until the end of time. You might need those updates eventually! "resolutions": {
"tslib": "^1 <1.12.0 || ^1.13.0"
}, |
Ok came here hours ago and nothing worked. |
ts 3.8 + tslib 1.13.0 works for me |
tsc 3.9.2 + tslib 2.0.0 seems to resolve |
tsc 3.9.2 + tslib 1.11.2 resolved for me for now |
tslib@^2.0.0 works fine for me, with |
Worked for me using yarn! |
Still reproducible:
|
For what it's worth, I deleted |
Cannot reproduce this issue. Seems to be fixed. |
Lo que hice fue regresar mi versión de typeorm a la version 0.2.4. El problema se fue enseguida. |
yes mine too but did you have any other solution which work with typeorm latest version. |
Same issue is with me. Cannot set property metadata of # which has only a getter |
Nada amigo, por el momento esa es la unica solución que he podido encontrar. |
here too |
getting tslib with npm didn't fix it for me , still having the same error |
Changed import to |
This bug can still be reproduced.
|
Issue type:
[x] bug report
Database system/driver:
[x]
postgres
TypeORM version:
[x]
latest
Steps to reproduce or a small repository showing the problem:
Somehow getting this random error now and have. Literally tried rolling back my code and everything. Any suggestions where to look?
The text was updated successfully, but these errors were encountered: