Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`rstack/types/index.d.ts` references `@rsbuild/core/types` which cannot be resolved under pnpm

Abierto
#519 1 comentario 0 reacciones 1 asignado Ver en GitHub

@chenjiahan ya está trabajando en esto.

Desde el 24/9/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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 direct dependencies entry of the rstack package 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

  1. Install rstack@0.8.0 as the sole Rstack-related dependency in a pnpm project.
  2. Open any file that pulls in rstack/types (or open node_modules/rstack/types/index.d.ts directly).
  3. Observe the unresolved reference error on the /// <reference types="@rsbuild/core/types" /> line.

Notes

  • rs lib (build) completes successfully and generates valid declaration files via tsgo, 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_modules structure and TypeScript's triple-slash reference resolution algorithm, which does not follow the same resolution rules as ordinary import resolution.

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.

Lenguaje dominante
TypeScript
Estrellas
28
Forks
1
Merge medio
6 h 1 min
PR fusionados (30 d)
101

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rstackjs/rstack-cli

Todos los issues de rstackjs/rstack-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.