You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using gitpkg in repos with type "module" the configuration file is not loaded.
I logged the error thrown when trying to load the file below.
Is it possible to load .js/.cjs/.mjs?
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/pdan/Work/PDan/vue-keyboard-trap/gitpkg.config.js from .config/yarn/global/node_modules/gitpkg/build/tasks/Task/read-config.js not supported.
gitpkg.config.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead rename gitpkg.config.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in vue-keyboard-trap/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
The text was updated successfully, but these errors were encountered:
which calls require(), which throws that error, which makes it always revert to the defaultConfig in the catch block. Is there any babel config you can set in babel.config.json to address this? Or else declare require() top-level somewhere?
Hello.
When using gitpkg in repos with type "module" the configuration file is not loaded.
I logged the error thrown when trying to load the file below.
Is it possible to load .js/.cjs/.mjs?
The text was updated successfully, but these errors were encountered: