TypeStrong / TypeStrong/ts-loader

Safari shows "An error occurred trying to load the resource." when loading ts breakpoint

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

I can debug ts code in Safari directly

Actual Behaviour

Safari shows "An error occurred trying to load the resource." when loading ts breakpoint

Steps to Reproduce the Problem

I tried all the devtool mode, and the source map are currently, but Safari can only load the js file in search page, and I can see the breakpoint in search page's js file, but in Source page, the breakpoint hits in ts file, and Safari shows this:
image

Location of a Minimal Repository that Demonstrates the 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 Safari failure with the ts-loader webpack setup described, checking the devtool mode and source-map configuration. No minimal repository, files, or tests are provided; done means Safari can load the TypeScript source and hit breakpoints without the resource error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.