-
Notifications
You must be signed in to change notification settings - Fork 405
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
Please update class-transformer dependency to the latest version #783
Comments
The same issue is with Also, it would be much easy to avoid these kind of issues if you would switch to a stable semver range (major version > 0) because it would allow to match dependencies in a more relaxed manner. |
Dependency update sounds even more urgent because of the latest security vulnerability fixes for the following packages: |
Same issue for us, a fix will be a great help. Thanks! |
Same problem here... TypeError: class transformer 1.classToPlain is not a function |
Is there any workaround for this? I want to use |
+1 |
Is there any update ? |
Hi @NoNameProvided @attilaorosz, would you mind having a look at the pr? Thanks! |
Is there no new update for this issue? |
Seems like there are no real breaking changes in terms of class-transformer usage (I might be wrong here) so you can just update the package since it is only a peer dependency. |
We're working with TypeScript and we get some type differences that reflect breaking changes in the library. |
I just found a workaround which seems to work, you can install two versions of the same package using an alias:
My package.json now looks like this:
Never saw that syntax before, but this is working for me. |
@Killasushi - Could you please share your full package.json? Is there additional config you needed to do to point at the aliases? Doesn't seem to be doing the trick on my end. |
There is no additional config in my package.json. My package-lock.json looks like this, it is important that both versions do appear. That should be the case after running
|
Still an issue |
If someone is forking, please let me know! |
I am using overrides in my package.json. This is my workaround:
Try with |
Pls, update this 😮💨 |
No temporary workarounds? |
Did you try my suggested workaround? |
Trying to install |
Please update it. It's hard to use it in new project when it has such big issue |
i forked it. Feel free to use it in your projects. |
Hi folks! I have added branch protection bypass to @attilaorosz so he will be able to handle this. |
Awesome, I've let the team know! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello!
Thank you for this great library!
However, right now it requires
[email protected]
(exact version0.3.1
) as a peer dependency. This prevents my project from using the latest version of theclass-transformer
(which is0.4.0
).This generates the following error on
npm install
:Would you be so kind to update
class-transformer
dependency to the latest version?Thanks!
The text was updated successfully, but these errors were encountered: