Skip to content

Commit

Permalink
esm: fix broken assertion in legacyMainResolve
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Nov 3, 2024
1 parent 0385249 commit c78ec0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function legacyMainResolve(packageJSONUrl, packageConfig, base) {
}
// Not found.
throw new ERR_MODULE_NOT_FOUND(
fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base));
fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base), null);
}

/**
Expand Down

0 comments on commit c78ec0c

Please sign in to comment.