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

ESM Error while installing with full setup #3648

Open
pacaunt opened this issue Jul 3, 2024 · 0 comments
Open

ESM Error while installing with full setup #3648

pacaunt opened this issue Jul 3, 2024 · 0 comments

Comments

@pacaunt
Copy link

pacaunt commented Jul 3, 2024

When I run the command npm start the following code appeared:

> reveal.js@5.1.0 start
> gulp serve

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/pacaunt/reveal.js/node_modules/gulp-zip/index.js from /home/pacaunt/reveal.js/gulpfile.js not supported.
Instead change the require of index.js in /home/pacaunt/reveal.js/gulpfile.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/home/pacaunt/reveal.js/gulpfile.js:16:13) {
  code: 'ERR_REQUIRE_ESM'
}

I'm using Ubuntu 24.04 with node.js 21.1.0 and npm 10.2.0
what did I done wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant