-
Notifications
You must be signed in to change notification settings - Fork 719
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
LAZY_IN_SYNC: Uncaught TypeError: Cannot convert a Symbol value to a string #1510
Comments
Maybe a different issue but I had this problem while dealing with this error: What's the recommended way to troubleshoot which binding is causing the sync resolution to fail? I ended up editing Inversify's sources in my node modules to print what service identifier caused |
Hey @paul-marechal, calling Basically, there's no way to get syncronously the resolved async value of a Promise. For such a reason, there's no way to get an async binding calling If you wanted to keep async promise values, maybe you should be relying on a provider. |
As an attempt to clarify back when I opened this issue (using 6.0.1) I was:
The stringification issue was fixed by #1511. With that being said this issue was resolved and needed to be closed, thanks! |
Expected Behavior
I don't expect the LAZY_IN_SYNC error to fail when displaying symbols.
Current Behavior
LAZY_IN_SYNC fails to display symbols.
Possible Solution
Call
.toString()
explicitly before printing the symbol.Steps to Reproduce (for bugs)
Context
We recently migrated to Inversify 6 and had to deal with this error.
Your Environment
The text was updated successfully, but these errors were encountered: