`rstack/types/index.d.ts` references `@rsbuild/core/types` which cannot be resolved under pnpm
@chenjiahan já está trabalhando nisso.
Desde 24/9/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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/[email protected][email protected]/node_modules/@rsbuild/core/types.d.ts
Steps to reproduce
- Install
[email protected]as 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.
- Linguagem predominante
- TypeScript
- Estrelas
- 28
- Forks
- 1
- Merge médio
- 6h 1min
- PRs com merge (30d)
- 101
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de rstackjs/rstack-cli
-
rstackjs/rstack-cli#518 · 1 responsável ·
-
Rstack CLI Roadmap Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
rstackjs/rstack-cli#44 ·
-
Dependency Dashboard Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
rstackjs/rstack-cli#37 ·
Todas as issues de rstackjs/rstack-cli
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
-
security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
IBM/node-sdk-core#373 ·
-
e2e-failure ready-to-code
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
-
chore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100