TypeStrong / TypeStrong/ts-loader

Not working with TypeScript 5.0.2

Open
#1,600 4 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

After updating the project to TypeScript 5.0.2, it should build.

Actual Behaviour

It throws errors like this:

Module build failed (from ../../common/temp/node_modules/.pnpm/ts- loader@9.4.2_typescript@5.0.2+webpack@5.76.3/node_modules/ts-loader/index.js):
TypeError: ts.createTemplateHead is not a function

Steps to Reproduce the Problem

Update to TypeScript 5.0.2 in a project using ts-loader.

Location of a Minimal Repository that Demonstrates the Issue.

Will add this in case this is an unexpected issue.

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 by reproducing the build failure with TypeScript 5.0.2 and ts-loader 9.4.2, using the reported ts-loader error as the entry point. Investigate the compatibility issue behind the missing TypeScript API; done means a project using this combination builds successfully, with a minimal reproduction or regression test if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.