Title: `rstack/types/index.d.ts` references `@rsbuild/core/types` which cannot be resolved under pnpm · Issue #519 · rstackjs/rstack-cli · GitHub
Open Graph Title: `rstack/types/index.d.ts` references `@rsbuild/core/types` which cannot be resolved under pnpm · Issue #519 · rstackjs/rstack-cli
X Title: `rstack/types/index.d.ts` references `@rsbuild/core/types` which cannot be resolved under pnpm · Issue #519 · rstackjs/rstack-cli
Description: Environment rstack: 0.8.0 Package manager: pnpm (strict node_modules) Editor: VS Code Summary rstack/types/index.d.ts contains: ///
Open Graph Description: Environment rstack: 0.8.0 Package manager: pnpm (strict node_modules) Editor: VS Code Summary rstack/types/index.d.ts contains: ///
X 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 re...
Opengraph URL: https://github.com/rstackjs/rstack-cli/issues/519
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`rstack/types/index.d.ts` references `@rsbuild/core/types` which cannot be resolved under pnpm","articleBody":"## Environment\n- rstack: 0.8.0\n- Package manager: pnpm (strict node_modules)\n- Editor: VS Code\n\n## Summary\n`rstack/types/index.d.ts` contains:\n```ts\n/// \u003creference types=\"@rsbuild/core/types\" />\n```\nThis reference fails to resolve in the editor (VS Code / tsserver), producing a red squiggly / unresolved reference error, even though:\n- `@rsbuild/core` (`~2.2.8`) is declared as a direct `dependencies` entry of the `rstack` package itself\n- The file physically exists at `node_modules/.pnpm/rstack@0.8.0_..._typescript@7.0.2/node_modules/@rsbuild/core/types.d.ts`\n\n## Steps to reproduce\n1. Install `rstack@0.8.0` as the sole Rstack-related dependency in a pnpm project.\n2. Open any file that pulls in `rstack/types` (or open `node_modules/rstack/types/index.d.ts` directly).\n3. Observe the unresolved reference error on the `/// \u003creference types=\"@rsbuild/core/types\" />` line.\n\n## Notes\n- `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.\n- 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.\n\n## Suggested fix\nGiven 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.","author":{"url":"https://github.com/logue","@type":"Person","name":"logue"},"datePublished":"2026-09-24T10:14:05Z","url":"https://github.com/rstackjs/rstack-cli/issues/519"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9ef41e31-15cf-0dca-b55b-f19271233454 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A748:305AB4:2BEAFD:3BCF7A:6AEC1FA9 |
| html-safe-nonce | fb2ab5a4e9d13ad6114ca0f26d2bc0232801302bd773a8465c2587633d9606b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzQ4OjMwNUFCNDoyQkVBRkQ6M0JDRjdBOjZBRUMxRkE5IiwidmlzaXRvcl9pZCI6IjIwMDQxNjQ3MjI4ODQ4NzgyNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b5ef9307da3fe7dcee78806ac035abdbb7608d114ad03e01b47a49aeec203023 |
| hovercard-subject-tag | issue:5566756929 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rstackjs/rstack-cli/519/issue_layout |
| twitter:image | https://opengraph.githubassets.com/955b9d92b7e0782cdee3d89fdad16baddbd8c905df8d9ff1b7203edc51b329ee/rstackjs/rstack-cli/issues/519 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/955b9d92b7e0782cdee3d89fdad16baddbd8c905df8d9ff1b7203edc51b329ee/rstackjs/rstack-cli/issues/519 |
| og:image:alt | Environment rstack: 0.8.0 Package manager: pnpm (strict node_modules) Editor: VS Code Summary rstack/types/index.d.ts contains: /// |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | logue |
| hostname | github.com |
| expected-hostname | github.com |
| None | d063d52022f5f270ef55a70761d126c8085d492d3c251084b07781784c02dad4 |
| turbo-cache-control | no-preview |
| go-import | github.com/rstackjs/rstack-cli git https://github.com/rstackjs/rstack-cli.git |
| octolytics-dimension-user_id | 129049372 |
| octolytics-dimension-user_login | rstackjs |
| octolytics-dimension-repository_id | 1138027854 |
| octolytics-dimension-repository_nwo | rstackjs/rstack-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1138027854 |
| octolytics-dimension-repository_network_root_nwo | rstackjs/rstack-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56e59340194011ba3cb6809acfa979ccbd174288 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width