Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#519 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@chenjiahan がすでに取り組んでいます。

2026年9月24日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
TypeScript
スター
28
フォーク
1
平均マージ
6時間 1分
マージ済み PR(30日)
101

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rstackjs/rstack-cli のほかの issue

rstackjs/rstack-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。