`rstack/types/index.d.ts` references `@rsbuild/core/types` which cannot be resolved under pnpm
@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 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.
- 主要言語
- TypeScript
- スター
- 28
- フォーク
- 1
- 平均マージ
- 6時間 1分
- マージ済み PR(30日)
- 101
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rstackjs/rstack-cli のほかの issue
-
rstackjs/rstack-cli#518 · 担当者 1 名 ·
-
Rstack CLI Roadmap オープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
rstackjs/rstack-cli#44 ·
-
Dependency Dashboard オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
rstackjs/rstack-cli#37 ·
rstackjs/rstack-cli の issue をすべて見る
似ている issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100