-
-
Notifications
You must be signed in to change notification settings - Fork 216
Description
Version
System:
OS: macOS 14.6.1
CPU: (12) arm64 Apple M2 Max
Memory: 3.39 GB / 96.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 135.0.7049.115
Safari: 17.6
npmPackages:
@rspress/plugin-client-redirects: 2.0.0-beta.3 => 2.0.0-beta.3
@rspress/shared: 2.0.0-beta.3 => 2.0.0-beta.3
rspress: 2.0.0-beta.3 => 2.0.0-beta.3Details
We are using "moduleResolution": "node16". And the types is not working now.
I think it's caused by #2084.
Currently, @rspress/runtime/dist/index.d.ts has:
export { DataContext, ThemeContext, useDark, useI18n, useLang, usePageData, useVersion, useViewTransition, useWindowSize, } from './hooks';which cause ./hooks cannot be resolved by TypeScript.
You may also see the result at https://arethetypeswrong.github.io/?p=%40rspress%2Fruntime%402.0.0-beta.3
Reproduce link
Reproduce Steps
- Run
pnpm install - See the TS/ESLint error in website/theme/HomeLayout/index.tsx`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels