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
#1,472 0 comments 0 reactions 0 assignees View on GitHub

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:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.