We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5ef2e8 commit 0049147Copy full SHA for 0049147
lib/internal/modules/esm/loader.js
@@ -416,8 +416,8 @@ class ModuleLoader {
416
if (parentFilename) {
417
message += ` (from ${parentFilename})`;
418
}
419
- message += 'A cycle involving require(esm) is disallowed to maintain ';
420
- message += 'invariants madated by the ECMAScript specification';
+ message += ' A cycle involving require(esm) is not allowed to maintain ';
+ message += 'invariants mandated by the ECMAScript specification. ';
421
message += 'Try making at least part of the dependency in the graph lazily loaded.';
422
throw new ERR_REQUIRE_CYCLE_MODULE(message);
423
0 commit comments