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

maintenance: get ready for esm/mjs #71

Open
antongolub opened this issue Jun 18, 2021 · 0 comments
Open

maintenance: get ready for esm/mjs #71

antongolub opened this issue Jun 18, 2021 · 0 comments

Comments

@antongolub
Copy link
Member

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

[multi-semantic-release]: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/runner/work/semantic-release-toolkit/semantic-release-toolkit/node_modules/file-url/index.js
require() of ES modules is not supported.
require() of /home/runner/work/semantic-release-toolkit/semantic-release-toolkit/node_modules/file-url/index.js from /home/runner/work/semantic-release-toolkit/semantic-release-toolkit/packages/common/target/es5/git/init.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/runner/work/semantic-release-toolkit/semantic-release-toolkit/node_modules/file-url/package.json.
antongolub added a commit that referenced this issue Jun 18, 2021
antongolub added a commit that referenced this issue Jun 18, 2021
qiwibot added a commit that referenced this issue Jun 18, 2021
## [1.4.4](https://github.com/qiwi/semantic-release-toolkit/compare/@qiwi/[email protected]...@qiwi/[email protected]) (2021-06-18)

### Bug Fixes

* **deps:** downgrade file-url to v3 ([5d1b12b](5d1b12b)), closes [#71](#71)
* **deps:** update dependency file-url to v4 ([f4d744f](f4d744f))
qiwibot added a commit that referenced this issue Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant