Types aren't recognized if the project is setup with pnpm #9080
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
If a project is initialized with pnpm, types aren't being recognized. This is not an issue with npm. Manually importing missing types fixes the errors. So I wanted to report this as it may be a bug. Tested it on latest 2.4.1 and canary Alpha3.0.0.
Reproducible demo
No response
Steps to reproduce
You may reproduce this issue by starting a new project with the command
pnpm create docusaurus
. Yes, I did select the typescript option during setup.Expected behavior
It should recognize types similar to when installed with npm.
Actual behavior
Getting missing type errors.
Also getting errors for and not limited to node types, react types etc.
Solution
Manually installing types like so
Your environment
Self-service
The text was updated successfully, but these errors were encountered: