[X] I have read the console error message carefully (if applicable).
Description
VSCode is complaining about missing types when referencing useHistory. The code works as expected, its just a nuisance seeing the error. I was unable to repo this in the Playground.
Reproducible demo
No response
Steps to reproduce
Add import { useHistory } from '@docusaurus/router'; to a TSX file
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
VSCode is complaining about missing types when referencing
useHistory
. The code works as expected, its just a nuisance seeing the error. I was unable to repo this in the Playground.Reproducible demo
No response
Steps to reproduce
Add
import { useHistory } from '@docusaurus/router';
to a TSX fileExpected behavior
No errors are shown
Actual behavior
Error is shown
Your environment
Here's my package.json
Self-service