You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Gazelle extension encounters an folder with only type declarations it will generate an ts_project for the folder.
The issue is that ts_project does not support typecheck-only and fails with the following error when built:
Error in fail: ts_project target //src/nodejs/nextjs_bootstrap/src/nextjs_bootstrap:nextjs_bootstrap only has typings in srcs.
Since there is no `tsc` action to perform, there are no generated outputs.
> ts_project doesn't support "typecheck-only"; see https://github.com/aspect-build/rules_ts/issues/88
This should be changed to js_library, which can be done by running:
buildozer 'new_load @aspect_rules_js//js:defs.bzl js_library' //src/nodejs/nextjs_bootstrap/src/nextjs_bootstrap:__pkg__
buildozer 'set kind js_library' //src/nodejs/nextjs_bootstrap/src/nextjs_bootstrap:nextjs_bootstrap
buildozer 'remove declaration' //src/nodejs/nextjs_bootstrap/src/nextjs_bootstrap:nextjs_bootstrap
Version
Development (host) and target OS/architectures:
Output of bazel --version: 6.1.1
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file:
rules_js: 1.24.0
rules_ts: 1.3.3
aspect-cli: Commit e95892c
What happened?
When the Gazelle extension encounters an folder with only type declarations it will generate an
ts_project
for the folder.The issue is that
ts_project
does not support typecheck-only and fails with the following error when built:Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 6.1.1Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:rules_js: 1.24.0
rules_ts: 1.3.3
aspect-cli: Commit e95892c
Language(s) and/or frameworks involved:
Typescript
How to reproduce
Create an folder that only contains `d.ts` files with types and run the gazelle extension. Then build the generated target.
Any other information?
No response
The text was updated successfully, but these errors were encountered: