Skip to content

Commit

Permalink
Fix Cannot find module error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jul 30, 2024
1 parent 04387a6 commit a28a16a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function moduleContext(map: ModuleContextMap): ModuleContext {
return map[id].module();
}

const e = new Error(`Cannot find module '${name}'`);
const e = new Error(`Cannot find module '${id}'`);
(e as any).code = "MODULE_NOT_FOUND";
throw e;
}
Expand All @@ -278,7 +278,7 @@ function moduleContext(map: ModuleContextMap): ModuleContext {
return map[id].id();
}

const e = new Error(`Cannot find module '${name}'`);
const e = new Error(`Cannot find module '${id}'`);
(e as any).code = "MODULE_NOT_FOUND";
throw e;
};
Expand Down

0 comments on commit a28a16a

Please sign in to comment.