New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types aren't recognized if the project is setup with pnpm #9080
Comments
It should be mentioned that, as is shown in the issue mentioned above, in version 3 of Docusaurus there are 2 type errors: one for |
Yeah, indeed it is a solution. |
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: