[Bug]: React Native Web has peer dependency errors with typescript 6+
Author: NiGhTTraXCreated Sep 13, 2026Updated Sep 13, 2026
Labelsbugneeds triage
Describe the bug
[ERR_PNPM_PEER_DEP_ISSUES] Unmet peer dependencies
✕ unmet peer typescript
Installed: 6.0.3
Wanted:
^5:
[email protected]
^5.0.0:
[email protected]
For vite-plugin-rnw please see https://github.com/storybookjs/storybook/pull/36304.
tsconfck comes via vite-tsconfig-paths: https://github.com/storybookjs/storybook/blob/b7612c7258bc21a160299c013f536d22e21438f1/code/frameworks/react-native-web-vite/package.json#L58
tsconfck is deprecated so there's no version that peer depends on ts>5.
Fortunately, Vite 8 supports TS path aliases out of the box:
▲ Vite The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig
│ paths resolution natively via the resolve.tsconfigPaths option. You can remove
│ the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
You could consider removing vite-tsconfig-paths and dropping support for Vite < 8 in a new major.
Reproduction link
https://github.com/NiGhTTraX/sb-rnw-ts-peer-dep
Reproduction steps
- Clone repo
- Install pnpm
pnpm ipnpm peers check
System
│ System:
│ OS: macOS 26.6.2
│ CPU: (8) arm64 Apple M1 Pro
│ Shell: 5.9 - /bin/zsh
│ Binaries:
│ Node: 24.19.0
│ pnpm: 12.4.1 <----- active
│ npmPackages:
│ @storybook/react-native-web-vite: ^10.6.0 => 10.6.0
Additional context
No response
Source: storybookjs/storybook