-
Notifications
You must be signed in to change notification settings - Fork 796
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
fix: avoiding metadataStorage from DI #335
Conversation
forked and merged your branch, and published it on |
OH MY GOD, thank you guys!!!! I have been stuck at this issue for 10 hours Here's the damned error message so others can find this issue on Google quickly: @MardariG you npm package |
@vlapo can this be merged? |
LGTM |
2 similar comments
LGTM |
LGTM |
Hi guys I've updated the description with a possible fix until the PR has been merged. |
Hi @vlapo, could you review? |
@vlapo please |
Hi @vlapo, might you provide any feedback about the issue? |
We can’t use MetadataStorage with DI because decorators are parsed before the very first call of useContainer, and therefore after the very fist call of useContainer the current MetadataStorage in the default container has been replaced with a brand new one without any metadata inside. Closes #328. Closes #261. Closes #132.
@satanTime I thank you for your determination and perseverance. This looks good for me. I will merge it and publish pre-release for testing. |
Thanks! |
Happy testing https://www.npmjs.com/package/class-validator/v/0.12.0-rc.0. Please give me a feedback. |
thanks! |
after updating, I receive
Opened a ticket here #607 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
We can’t use
MetadataStorage
with DI because decorators are parsed before the very first call ofuseContainer
, and therefore after the very fist call ofuseContainer
the currentMetadataStorage
in the default container has been replaced with a brand new one without any metadata inside.Possible runtime fix is to disable
MetadataStorage
in thetypedi
container:Closes #328.
Closes #261.
Closes #132.