require() of ES Module is not supported
Maybach91 opened this issue · comments
Using the following command
release-it prerelease --preRelease=alpha --gitlab.preRelease
gets me the following error:
ERROR require() of ES Module /node_modules/@release-it/bumper/index.js from /node_modules/import-from/index.js not supported.
Instead change the require of /node_modules/@release-it/bumper/index.js in /node_modules/import-from/index.js to a dynamic import() which is available in all CommonJS modules.
My config:
"plugins": {
"@release-it/bumper": {
"out": {
"file": "./shopify/config/settings_schema.json",
"path": "[0].theme_version"
}
}
}
my file, where i want to update the version number:
[
{
"name": "theme_info",
"theme_version": "0.0.1",
},
...
]
But no matter if i’m using a test file or a different path, i still get the error. i already have @release-it/bumper@esm
installed.
Did you also npm install release-it@latest
(v15)?
You can remove the @esm
as the @latest
of the plugin is also ESM.
Did you also
npm install release-it@latest
(v15)?You can remove the
@esm
as the@latest
of the plugin is also ESM.
Nice hint! Thank you, that solved my issue. I didn’t know i had to update release-it
as well.