`rstack/types/index.d.ts` references `@rsbuild/core/types` which cannot be resolved under pnpm
@chenjiahan is already working on this.
Since Sep 24, 2026.
Assessment
This issue has not been assessed yet.
Description
Environment
- rstack: 0.8.0
- Package manager: pnpm (strict node_modules)
- Editor: VS Code
Summary
rstack/types/index.d.ts contains:
/// <reference types="@rsbuild/core/types" />
This reference fails to resolve in the editor (VS Code / tsserver), producing a red squiggly / unresolved reference error, even though:
@rsbuild/core(~2.2.8) is declared as a directdependenciesentry of therstackpackage itself- The file physically exists at
node_modules/.pnpm/rstack@0.8.0_..._typescript@7.0.2/node_modules/@rsbuild/core/types.d.ts
Steps to reproduce
- Install
rstack@0.8.0as the sole Rstack-related dependency in a pnpm project. - Open any file that pulls in
rstack/types(or opennode_modules/rstack/types/index.d.tsdirectly). - Observe the unresolved reference error on the
/// <reference types="@rsbuild/core/types" />line.
Notes
rs lib(build) completes successfully and generates valid declaration files viatsgo, suggesting the build-time module resolution differs from the editor's (tsserver's) resolution of the same triple-slash reference.- This may be a known friction point between pnpm's isolated
node_modulesstructure and TypeScript's triple-slash reference resolution algorithm, which does not follow the same resolution rules as ordinaryimportresolution.
Suggested fix
Given that rstack already re-exports APIs from its dependencies via subpaths (rstack/app, rstack/lib, rstack/lint), consider having rstack/types similarly re-export or inline the relevant @rsbuild/core type definitions rather than relying on a raw external triple-slash reference, for consistency with the rest of the package's re-export design.
- Dominant language
- TypeScript
- Stars
- 28
- Forks
- 1
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 101
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rstackjs/rstack-cli
-
rstackjs/rstack-cli#518 · 1 assignee ·
-
Rstack CLI Roadmap Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
rstackjs/rstack-cli#44 ·
-
Dependency Dashboard Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rstackjs/rstack-cli#37 ·
All issues in rstackjs/rstack-cli
Similar issues
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ElementsProject/cln-application#167 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Quantco/pnpm-licenses#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100