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 No Longer Use From ESM JavaScript Actions #1208
Comments
The issue was introduced at |
I suspect the issue may be that a dependency was introduced on |
Hi @Kurt-von-Laven thanks for raising the PR for this. the change looks good to me but I just want to highlight that toolkit packages are using commonjs modules. I have very limited knowledge in modules, but not sure if we should really expect the ESM modules to be able to work with CJS modules seamlessly. |
Thanks for the speedy review! Generally, ESM and CJS are intended to be interoperable in this way (with, as there always are, the occasional caveats). Indeed, I believe most of our dependencies are CJS. Now that I have found the likely cause of the crash, I wonder if this particular issue has more to do with the fact that we are using Yarn, which may forbid undeclared package imports. |
Version 3.0.6 has been published. @Kurt-von-Laven can you please confirm if the issue is resolved for you? |
Awesome! Yes, it works for me in ScribeMD/docker-cache#228. |
Describe the bug
v3.0.0 was compatible with ESM, but v3.0.4 is not. See ScribeMD/docker-cache#176, which bumps the version of
@actions/cache
. Here is the error we encountered when attempting to upgrade:To Reproduce
Steps to reproduce the behavior:
@actions/cache
.Expected behavior
I expected it to continue to be possible to use
@actions/cache
with ESM.Additional context
Cross-filed as actions/cache#949. Not fixed at
@actions/cache
v3.0.5 (c.f., ScribeMD/docker-cache#207).The text was updated successfully, but these errors were encountered: