Skip to content

Commit

Permalink
fix: add more detailed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-x committed Jan 11, 2025
1 parent 36b6bf2 commit f1791dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export function initializeInstance(
} else {
if (!loader._compiler!.hooks) {
throw new Error(
"You may be using an old version of webpack; please check you're using at least version 4"
"You may be using an old version of webpack; please check you're using at least version 4. Or you should set `transpileOnly` or `happyPackMode` to true when using with `thread-loader`."
);
}

Expand Down
1 change: 0 additions & 1 deletion src/servicesHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ function createWatchFactory(
}
return result;
}
``;

function invokeRecursiveDirectoryWatcher(
directory: string,
Expand Down

0 comments on commit f1791dd

Please sign in to comment.