Skip to content
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

ERR_REQUIRED_ESM error with multiple plugin packages #138

Closed
jcapogna opened this issue Jul 4, 2023 · 8 comments · Fixed by #143
Closed

ERR_REQUIRED_ESM error with multiple plugin packages #138

jcapogna opened this issue Jul 4, 2023 · 8 comments · Fixed by #143
Labels

Comments

@jcapogna
Copy link

jcapogna commented Jul 4, 2023

It has been documented in a few places like #136 that certain semantic-release plugins need to be downgraded when using semantic-release-monorepo, due to it not support ESM yet. ESM support should be added in #137.

I'm creating this ticket to consolidate knowledge about this problem for other people.

So far I have to add perform the following downgrades:

  • @semantic-release/commit-analyzer to v9
  • @semantic-release/gitlab to v9
  • @semantic-release/npm to v9
@FrederickEngelhardt
Copy link

Same problem. Thanks for making this issue.

@JosefSaltz
Copy link

Confirming that I also only get this error when using semantic-release-monorepo. When I remove the extends: line from my .releaserc.json my workflow runs as expected.

@bryanjtc
Copy link
Contributor

bryanjtc commented Nov 1, 2023

I published a new package semantic-release-monorepo-esm that supports esm. v1.0.10 should work without issues.
The new package is based on the changes in this pr. #143

@jcapogna
Copy link
Author

jcapogna commented Nov 1, 2023

@bryanjtc That's awesome. I was thinking it might make sense to fork this. I'll play around with it.

@mario-jerkovic
Copy link

@jcapogna
We've released a monorepo package that's compatible with ESM, and since you have access to the source code, you're free to customize it as you wish. Cheers! 🍻

NPM package: https://www.npmjs.com/package/@rimac-technology/semantic-release-monorepo
Source code: https://github.com/RimacTechnology/semantic-release-monorepo

@jcapogna
Copy link
Author

jcapogna commented Jan 12, 2024

@mario-jerkovic That's great! I'll check it out.

@pmowrer If one of these forked packages works well, maybe we should deprecate this package and point it to the fork since this package is no longer maintained.

Are there any major differences between semantic-release-monorepo-esm from @bryanjtc and https://github.com/RimacTechnology/semantic-release-monorepo from @mario-jerkovic ??

@mario-jerkovic
Copy link

mario-jerkovic commented Jan 14, 2024

@mario-jerkovic That's great! I'll check it out.

@pmowrer If one of these forked packages works well, maybe we should deprecate this package and point it to the fork since this package is no longer maintained.

Are there any major differences between semantic-release-monorepo-esm from @bryanjtc and https://github.com/RimacTechnology/semantic-release-monorepo from @mario-jerkovic ??

This package is a rewrite, it doesn't need the extend keyword in the .releaserc and the default tag format is pacakge-name@version but you can override it by defining tagFormatkey in .releaserc.

Except those two thing, everything else should work same as before 🙂

Copy link

🎉 This issue has been resolved in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants