-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Missing symbol providers on dynamic modules #5964
Comments
Thanks for providing a great reproduction code! Fixed in 7.6.3 |
Tested the above code against
Thanks for the quick fix! |
@kamilmysliwiec After further testing the fix seems incomplete. Because the provided token gets serialized as a string, using I think symbols must be kept as-is for provider tokens in order for them to be useful, since by design I kindly suggest reopening this. Adapted
|
Using
provide: Symbol()
with dynamic modules leads to strange behaviors and missing providersConsider the
TestModule
:With the following
AppModule
:Output log is :
Notice :
1
,2
, and3
, provided as symbols get « collapsed » into one4
,5
and6
, provided as random strings, work as expected7
,8
and9
, providing both values somehow works too10
to16
, not using a dynamic module work as expected tooExpected : features
2
and3
should get loaded into nest.Versions :
edit : fixed log that did not properly match the code
The text was updated successfully, but these errors were encountered: