Open JohnICB opened 5 months ago
Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.
Hey @JohnICB , thanks for reporting an issue.
Can you please move your setup into a min reproduction repo? I've quickly tried in an empty project and with latest nest version and can't reproduce your issue
Hey!
The issue probably is the fact that I have multiple dependencies to react and other libraries that has a dependency to react (such as tanstack query and tanstack router) that are of different versions
Must be the mix of 18.2.0 and 17.0.2 versions of react that don't play nicely.
Removing all other dependencies fixes the issue, even though async-api has dependencies to both versions of react, it somehow does not want to work with my other dependencies
^ this is working now
Installing it while having all these dependencies does not work anymore:
I'll try to setup a repo when I have the time to make it more easily to reproduce, but I think the issue is with the
react-generator-sdk
since it was the only dependency to react 17.0.2 at that time
I had the same problem I had a monorepo with react app and nestjs app (i used npm workspaces for monorepo) I removed nestjs app from the monorepo and at this point it have separate node_modules and the async-api started to work
Describe the bug Running
AsyncApiModule.setup
causes React error to appear in logs and stops the process.To Reproduce Steps to reproduce the behavior:
run
npm i --save nestjs-asyncapi
main.ts
See error in logs and the process exists
Expected behavior The error to not appear in the logs and to start the dashboard.
Environment
Node
v20.10.0
TS:4.7.2
Edit: Upgraded to 5.3.3, same result Docker version 24.0.7, build afdd53bFor Tooling issues:
Others:
Edit: using an AppModule empty (no modules imported) raises the same issue I thought it was from the models, some are more complicated. I guess this rules it out Edit: Upgraded tsc version