-
|
After initializing a fresh project with TypeScript or manually installing pnpm add --save-dev typescript @docusaurus/module-type-aliases @docusaurus/tsconfig @docusaurus/typesInside index.ts first line, it says I was able to fix this by following https://react.dev/learn/typescript and adding 2 packages pnpm add -D @types/react @types/react-dom |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We don't support a way to "manually install" Docusaurus, it's unclear what you did
Not sure what this command is for exactly, but it's not a way to manually install Docusaurus
Hmm, yes, I agree that the React types should be added to our TS init template I think we do not catch that issue in CI because our base TS config is not strict enough. I'll see how to make it stricter for V4. This happens for pnpm in particular since it doesn't hoist types, and we see the error with However, you shouldn't need |
Beta Was this translation helpful? Give feedback.
We don't support a way to "manually install" Docusaurus, it's unclear what you did
Not sure what this command is for exactly, but it's not a way to manually install Docusaurus