aspect-build / aspect-build/rules_ts

[Bug]: When using persistent workers, files are not created in their correct location

Open
#867 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Starlark
Stars
138
Forks
87
Avg merge
2d 8h
Merged PRs (30d)
3

Description

### What happened?

With a basic react app with a config that looks like:
```
ts_project(
name = "src_ts",
srcs = glob(
include = SRC_PATTERNS,
exclude = TEST_PATTERNS,
),
declaration = True,
resolve_json_module = True,
supports_workers = 1,
transpiler = "tsc",
tsconfig = "//path:tsconfig",
deps = [
...
],
)
```

I get errors like:
```
WARNING: Remote Cache: Expected output web/src/App.js was not created locally.
ERROR: /web/src/BUILD.bazel:34:11: output 'security/otac/web/src/App.js' was not created
...
```

### Version

Development (host) and target OS/architectures:

Output of `bazel --version`:
```
bazel version
Build label: 8.4.2- (@non-git)
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Jan 01 00:00:00 1980 (315532800)
Build timestamp: 315532800
Build timestamp as int: 315532800
```

Version of the Aspect rules, or other relevant rules from your
`WORKSPACE` or `MODULE.bazel` file: bazel_dep(name = "aspect_rules_ts", version = "3.7.1")

Language(s) and/or frameworks involved:
typescript

### How to reproduce

```shell

```

### Any other information?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the reported ts_project configuration using supports_workers = 1 and transpiler = "tsc" on Bazel 8.4.2 with aspect_rules_ts 3.7.1. Reproduce the missing-output errors and compare persistent-worker output paths with the expected web/src/App.js location; done means generated files are created at the declared paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
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.