Skip to content

error TS6305: Output file not built when using TSPR because --build isn't implemented yet #1182

Open
@joshcartme

Description

@joshcartme

repro: https://github.com/joshcartme/tsgo-ts6305

Using the above:

This is a repro of TS6305 errors that arise from TSPR because --build does not yet work.

$ yarn run tsgo
index.ts:1:21 - error TS6305: Output file '/home/tsgo/tsgo-ts6305/lib/dist/foo.d.ts' has not been built from source file '/home/tsgo/tsgo-ts6305/lib/foo.ts'.

1 import { FOO } from "./lib/foo";
                      ~~~~~~~~~~~

Found 1 error in index.ts:1

error Command failed with exit code 2.

If you first run yarn run tsc --build, it works:

$ yarn run tsc --build
Done in 0.78s.
$ yarn run tsgo
Done in 0.17s.

Then to break it again if you clean the build:

$ yarn run tsc --build --clean
Done in 0.13s.

$ /home/loafe/development/tsgo/tsgo-ts6305/node_modules/.bin/tsgo
index.ts:1:21 - error TS6305: Output file '/home/tsgo/tsgo-ts6305/lib/dist/foo.d.ts' has not been built from source file '/home/tsgo/tsgo-ts6305/lib/foo.ts'.

1 import { FOO } from "./lib/foo";
                      ~~~~~~~~~~~

Found 1 error in index.ts:1

error Command failed with exit code 2.

Metadata

Metadata

Assignees

Labels

Domain: Build ModeRelated to build mode, project references, solutionsDomain: Module ResolutionRelated to module resolution and module checker errors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions