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

require() of ES Module not supported. #56

Closed
ExpErgio opened this issue Mar 16, 2022 · 1 comment
Closed

require() of ES Module not supported. #56

ExpErgio opened this issue Mar 16, 2022 · 1 comment

Comments

@ExpErgio
Copy link

const logUpdate = require('log-update');
                  ^

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\ExpErgio\Desktop\cookrecetasbot\node_modules\log-update\index.js from C:\Users\ExpErgio\Desktop\cookrecetasbot\index.js not supported.
Instead change the require of C:\Users\ExpErgio\Desktop\cookrecetasbot\node_modules\log-update\index.js in C:\Users\ExpErgio\Desktop\cookrecetasbot\index.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (C:\Users\ExpErgio\Desktop\cookrecetasbot\index.js:2:19) {
  code: �[32m'ERR_REQUIRE_ESM'�[39m
}
@sindresorhus
Copy link
Owner

Repository owner locked as resolved and limited conversation to collaborators Mar 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants