TypeStrong / TypeStrong/ts-loader

['babel-loader', 'ts-loader'] i get Syntax Error: SyntaxError with ?.

Open
#1,289 5 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 use ['babel-loader', 'ts-loader'] in ts-loader result will to es6 but typescript compile something is missing.

Actual Behaviour

image

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 by reproducing the reported configuration with babel-loader and ts-loader, then compare the TypeScript output shown in the screenshots. Use the issue thread to determine where the ?. syntax is rejected; done means the same loader setup no longer reports the SyntaxError.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.