-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix build error in 'moduleResolution: node' project #3920
Conversation
fix #3910 |
@ricmoo any chance you can review this? can we remove the reference altogether? @marshalys i think the fix be causing an issue with projects that not configured to work with node's common module resolver with that said, currently the reference causes issues with the common use of Node module resolution which is often most use-cases |
I was about to push it out with the last minor push, but got apprehensive at the last minute, worried it might break some existing code. I want to seek advice, I’ll put it up on Twitter and any TypeScript gurus you know of, I would love their feedback. I don’t quite understand the nuance of why |
I think change |
Yes, I agree that it is the only change it makes, but I wanted to make sure that removing that attribute doesn't break some other environment. I think it is probably safe though, as I've added a CI workflow to try out various configurations. See: https://github.com/ethers-io/ethers.js/actions/runs/4772139877/jobs/8484486550 :) |
Fixed in v6.4.0. I've also added a bunch of environment tests to check for this regression in the future during the CI. Thanks! :) |
fix build error in project which config: "moduleResolution": "node" :