NX重新编译错误:Local主机上的启动检查员:9229失败:已使用的地址
我将NX与Nestjs一起用于MonorePo项目。运行项目后,所有内容都可以使用fien,直到我对文件进行一些更改并保存它们。在WebAPCK重新编码项目之后,它显示其已启动,但在控制台中存在错误“ localhost上的启动Inspector:9229失败:已使用的地址”,GraphQl Studio显示此错误:在服务器停止后无法执行GraphQl操作。代码>一段时间。一段时间后,它开始再次工作或在文件的第二次保存之后工作。
有什么想法如何解决?
I am using NX for monorepo project together with NestJs. After i run project everything works fien until I do some changes in files and save them. After webapck recompiles project it shows that it is started but has error in console "Starting inspector on localhost:9229 failed: address already in use" and GraphQL studio shows this error: Cannot execute GraphQL operations after the server has stopped
for some time. After some time it starts to work again or after second save of files.
Any ideas how to fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
之所以发生这种情况,是因为应用程序仍在打开并倾听端口。
通常,当您使用CTRL+C关闭应用程序时,它也应杀死该过程。
我想这是一个错误。
如何使用nodejs 如何修复它的简单方法,
简单方法
如何修复Mac/linux 如何为Windows用户修复它的
打开任务管理器,使用端口查找过程/服务,然后使用右键单击结束。
This happened because the app process is still open and listening to the port.
Normally when you close your app using Ctrl+C it should kill the process also.
I suppose it's a bug.
How to fix it the easy way with NodeJS
How to fix it the not that easy way for Mac/Linux
How to fix it for Windows users
Open the task manager, look for the process/service using the port and end it using the right click.