TypeStrong / TypeStrong/ts-loader
Help - I am using ts-loader in my webpack 5 and i am getting an error message which does not explain the problem
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.5k
- Forks
- 439
- Avg merge
- 17h 17m
- Merged PRs (30d)
- 2
Description
Expected Behaviour
Webpack build fails due to a typescript error with a proper error trace in the log
Actual Behaviour
Getting an error with a random uuid without any error trace,
Steps to Reproduce the Problem
Just run the webpack build
My webpack configuration for tsloader.:
{
test: /\.(ts|tsx)$/,
include: paths.componentSrc,
exclude: paths.componentNodeModules,
use: [
{
loader: require.resolve('babel-loader'),
options: {
// Don't include whitespace characters and line terminators.
compact: true,
},
},
{ loader: require.resolve('ts-loader') },
],
},
The error message:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported webpack 5 configuration using babel-loader and ts-loader, then reproduce the build failure described in the issue. Trace why the log shows only a random UUID instead of the TypeScript error trace; done means the build reports the underlying TypeScript error clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, webpack
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100