-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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]: Must use import to load ES Module: C:\Node\gulpfile.js #2417
Comments
I found here that you can also name the file
|
We don't support node's mjs implementation because it requires a complete re-architecture of the project. We are looking into it, but I wouldn't expect it to arrive soon. As for using
|
Thank you for the feedback. In one of the options it also says:
So when I rename |
We don't support |
If the |
It's being suggested by the
You don't. I'm going to lock this as it's not a conversation. |
I'm sorry if this is not the right place to ask this question. But I already tried StackOverflow {1} {2} and other GitHub channels without success. We're trying to move to the new standard using ES6
import
andexport
instead ofrequire
.We're running node
v13.6.0
with the follwoinggulpfile.js
:The error reported when simply executing
gulp
in the terminal is:I must be doing something wrong. Anyone an idea on what it might be?
The flag
"type": "module",
is set inpackage.json
as described in the note docs. Similar issues can be found here and here. Even when trying this example it fails.Any help on resolving this would be highly appreciated.
The text was updated successfully, but these errors were encountered: