-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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 destructure property metatype
of 'undefined' or 'null' on related modules
#493
Comments
Please, could you point me to the particular file that throws an exception? It's a little bit difficult to go through the whole codebase. 🙂 |
Hello, i add a test module in https://github.com/notadd/next/blob/d7d6b87d1606eb34fcb184541719cd113366c90a/src/injection/modules/test.module.ts, and using it in https://github.com/notadd/next/blob/d7d6b87d1606eb34fcb184541719cd113366c90a/src/injection/modules/addon.module.ts, please clone https://github.com/notadd/next/tree/d7d6b87d1606eb34fcb184541719cd113366c90a for testing, thank you. |
Could you let me know whether this bug still appears in the latest version |
@kamilmysliwiec yes, it still appears in |
I did a small investigation and the reason is a circular dependency that exists somewhere (for example, between components). I'd provide more descriptive error messages here. Hence, debugging should be much easier. |
I am getting TypeError: metatype is not a constructor. Please find below error. Debugger listening on ws://127.0.0.1:9229/7cbd1c87-eb9e-4a22-bd94-b01d7e7a2399 |
TypeError: Cannot destructure property
|
@11084956 我也遇到这个问题了,你解决了吗? |
@zpcjingyu 没有啊 |
同样的问题,是否解决了? |
我刚刚也遇到这个问题,执行以下语句解决了: 希望对你有帮助 |
我刚刚也遇到这个问题,执行以下语句解决了: 希望对你有帮助 |
这个版本有点低啊,我看网上都是让升级到4+以上的版本,但是现在我也没管他,只要不进行升级就能跑起来,因为只是用来学习的,也没有深究过,非常感谢告诉解决办法
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm submitting a...
Current behavior
in my project https://github.com/notadd/next, i define a test module like:
thrown a exception:
Expected behavior
Minimal reproduction of the problem with instructions
https://github.com/notadd/next
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: