-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Can't use d3 lib with NestJS #10239
Comments
Why it's closed and locked. We really need this feature, please... |
Because it's a major effort, that we're assessing, and there's workarounds in that thread |
Sorry if my tone isn't rosy here, but, man, this is incredibly frustrating. 😢 I've lost about 8 hours on separate occasions looking for workarounds to this, endless fiddling with tsconfig.json (my favorite use of my Saturday), trying to use What happens when more and more libraries start going ESM only? More and more time spent fighting the framework than delivering value, I'd wager. I was really hoping to use nest on my team's next major project because of the devtools and enterprise features, but now I'm not so sure. |
Again, there are workarounds in the linked thread about how you can use esm packages in commonjs. I understand it's less than ideal, but it is possible. With express and fastify still being commonjs packages, not to mention all the microservice packages and websockets packages, there's too many underlying issues for Nest to directly transfer to ESM, to my understanding. I do plan on continuing to look into this, but people, please stop blaming the framework when we've been trying to provide ways to work around it. |
Is there an existing issue for this?
Current behavior
Hello! I have problems with using the d3 package.
Require package use ES Module, but NestJS don't support this and I cant't use this module.
Minimum reproduction code
https://github.com/dminglv/nestjs-d3
Steps to reproduce
No response
Expected behavior
The third-party library is not imported (
d3
)Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
d3
NestJS version
9.0.11
Packages versions
Node.js version
18.8.0
In which operating systems have you tested?
Other
The text was updated successfully, but these errors were encountered: