Could not find a declaration file for module 'react' for PNPM setup #9580
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
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
The initial project created by
create-docusaurus
with PNPM will not resolve TypeScript hinting forreact
packageReproducible demo
No response
Steps to reproduce
Follow https://docusaurus.io/docs/typescript-support to create a new repo:
pnpx create-docusaurus@latest my-website classic --typescript
import React from 'react';
Expected behavior
React resolves correctly (The result in this screenshot is created by
npx
):Actual behavior
Your environment
Self-service
The text was updated successfully, but these errors were encountered: