Skip to content

[Bug]: Gulp generate-assets triggers Error ERR_REQUIRE_ASYNC_MODULE #2997

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

Open
1 task done
MrWardKKHS opened this issue Mar 30, 2025 · 0 comments · May be fixed by #2998
Open
1 task done

[Bug]: Gulp generate-assets triggers Error ERR_REQUIRE_ASYNC_MODULE #2997

MrWardKKHS opened this issue Mar 30, 2025 · 0 comments · May be fixed by #2998
Labels

Comments

@MrWardKKHS
Copy link

Description of the bug

Any call to gulp generate-assets triggers an error

Terminal output

> csfieldguide@1.0.0 generate-assets
> gulp generate-assets

Error [ERR_REQUIRE_ASYNC_MODULE]: require() cannot be used on an ESM graph with top-level await. Use import() instead. To see where the top-level await comes from, use --experimental-print-required-tla.
    at ModuleJobSync.runSync (node:internal/modules/esm/module_job:384:13)
    at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:323:47)
    at Object.loadESMFromCJS [as .mjs] (node:internal/modules/cjs/loader:1371:24)
    at Module.load (node:internal/modules/cjs/loader:1275:32)
    at Module._load (node:internal/modules/cjs/loader:1096:12)
    at Module.require (node:internal/modules/cjs/loader:1298:19)
    at require (node:internal/modules/helpers:182:18)
    at requireOrImport (/app/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js:19:11)
    at execute (/app/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js:37:3)
    at Liftoff.handleArguments (/app/node_modules/gulp/node_modules/gulp-cli/index.js:211:24) {
  code: 'ERR_REQUIRE_ASYNC_MODULE'
}
exit status 1

Gulp-cli issue #268

node require enabled by default

Steps To Reproduce

1: Clone repo
2: run ./dev start
3: run ./dev update

What device/software are you seeing this problem on?

Occurs both on Windows and Mac envs.

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MrWardKKHS MrWardKKHS added the bug label Mar 30, 2025
@MrWardKKHS MrWardKKHS linked a pull request Mar 30, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant