TypeStrong / TypeStrong/ts-loader

Enabling `enhanced-resolve` Causes Errors

Open
#1,507 11 comments 1 reaction 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

Running webpack using ts-loader with enhanced-resolve enabled causes errors as described in #1504 and #1505.

Actual Behaviour

webpack should still run properly with ts-loader.

Steps to Reproduce the Problem
  1. Install ts-loader@9.4.0
  2. Install spica
  3. Import setTimeout from spica/global
  4. Try to compile the module using webpack with ts-loader
  5. Take note that the compilation fails
Location of a Minimal Repository that Demonstrates the Issue.

Thanks a lot to @falsandtru for providing the demonstrations!

This issue is related to #1506, #1504 and #1505
The error has been introduced in #1503

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 failure with ts-loader@9.4.0, enhanced-resolve, spica, and the linked pjax-api or clientchannel repositories. Read the error details in issues #1504 and #1505 and the change from #1503; done means webpack compiles the module successfully with ts-loader and enhanced-resolve enabled.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.