Closed twilroad closed 6 years ago
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 v4.6.6
?
@kamilmysliwiec yes, it still appears in v4.6.6
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
For help see https://nodejs.org/en/docs/inspector
[Nest] 30828 - 2018-7-18 14:33:25 [NestFactory] Starting Nest application...
[Nest] 30828 - 2018-7-18 14:33:25 [ExceptionHandler] metatype is not a constructor
TypeError: metatype is not a constructor
at resolveConstructorParams (D:\kltra-test\game-service\node_modules\@nestjs\core\injector\injector.js:64:84)
at Injector.resolveConstructorParams (D:\kltra-test\game-service\node_modules\@nestjs\core\injector\injector.js:86:30)
at ts-node --inspect -r tsconfig-paths/register src/main.ts
npm ERR! Exit status 3
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
TypeError: Cannot destructure property compile
of 'undefined' or 'null'.
at addHooks (C:\wamp64\www\vuenews\node_modules\webpack-dev-server\lib\Server.js:114:49)
at new Server (C:\wamp64\www\vuenews\node_modules\webpack-dev-server\lib\Server.js:127:5)
at startDevServer (C:\wamp64\www\vuenews\node_modules\webpack-dev-server\bin\webpack-dev-server.js:355:14)
at processOptions (C:\wamp64\www\vuenews\node_modules\webpack-dev-server\bin\webpack-dev-server.js:309:5)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
@11084956 我也遇到这个问题了,你解决了吗?
@zpcjingyu 没有啊
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
TypeError: Cannot destructure property
compile
of 'undefined' or 'null'. at addHooks (C:\wamp64\www\vuenews\node_modules\webpack-dev-server\lib\Server.js:114:49) at new Server (C:\wamp64\www\vuenews\node_modules\webpack-dev-server\lib\Server.js:127:5) at startDevServer (C:\wamp64\www\vuenews\node_modules\webpack-dev-server\bin\webpack-dev-server.js:355:14) at processOptions (C:\wamp64\www\vuenews\node_modules\webpack-dev-server\bin\webpack-dev-server.js:309:5) at process._tickCallback (internal/process/next_tick.js:68:7) at Function.Module.runMain (internal/modules/cjs/loader.js:744:11) at startup (internal/bootstrap/node.js:285:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
- How can I solve this problem?
同样的问题,是否解决了?
@11084956 我也遇到这个问题了,你解决了吗?
我刚刚也遇到这个问题,执行以下语句解决了: npm install -D webpack-dev-server@3.0.0
希望对你有帮助
@zpcjingyu 没有啊
我刚刚也遇到这个问题,执行以下语句解决了: npm install -D webpack-dev-server@3.0.0
希望对你有帮助
这个版本有点低啊,我看网上都是让升级到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