-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ESM TypeError: resolvable is not a function #7895
Comments
looks like a "left-pad" situation. https://github.com/josephg/resolvable is a 17 liner and has not been updated in 3 years. come on, just don't use dependencies like that |
I use the following
|
thank you, this indeed fixes the issue. its weird that this happens though, shouldn't node respect the main field as fallback? |
fails on node 20 and above, works on 18 |
I haven't spent much time trying to understand the issue, the JS file appears to be ESM compatible. Maybe the |
@trevor-scheer I can confirm that your MR works |
Issue #7895 reports that AS4 fails to build for ESM due to the resolvable dependency. I'm actually unsure _why_ this is happening though, since the shipped JS appears to be ESM compatible: https://unpkg.com/@josephg/resolvable@1.0.1/index.js @macrozone would you mind testing the builds from this PR (see Codesandbox CI comment) and letting me know if this resolves the issue in your project?
Fixed via #7900, should be available in |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
when switching to ESM, apollo server no longer starts. you get this error:
Link to Reproduction
not yet
Reproduction Steps
"type": "module"
in package.jsonThe text was updated successfully, but these errors were encountered: