TypeStrong / TypeStrong/ts-loader

TS18003: No inputs were found in config file

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

Now the project is working, but for this I had to create an empty file empty.ts
without an empty file, the project does not compile

Actual Behaviour

TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths
were '["**/*"]' and 'exclude' paths were '[]'.

Steps to Reproduce the Problem

https://github.com/viktordre2/ts-loader-issue
git clone => (remove emtpy.ts file from project directory cause there is no issue when the file exists) yarn => yarn build

The problem is that I do not need an empty file with the ts extension in the project, the data for the loader should be passed by vue-loader and this happens, but how to remove the error?

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 reproduced project at https://github.com/viktordre2/ts-loader-issue, remove empty.ts, and run yarn build using tsconfig.json. Investigate why TS18003 occurs when the inputs are expected from vue-loader; done means the project builds without requiring an empty TypeScript file.

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.