-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported #189
Comments
me too. Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Instead change the require to a dynamic import() which is available in all CommonJS modules. |
Same to me
|
same here? any solutions? when i try 'import ora from 'ora';' in my node project getting:
|
注意当前加载模块的规则是哪种?
|
writing like this will looks better
|
const ora = require('ora') |
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting the error message:
When I try and require ora:
const ora = require('ora')
I'm using node v16.9.0
The text was updated successfully, but these errors were encountered: