Unable to import type for SidebarItemConfig
in a typescript Docusaurus project.
#9902
Closed
4 of 7 tasks
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: question
This issue is a user error/misunderstanding.
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
Hi there! I have two sidebar slices that have the same category.
I assigned this category to a new
const
and dropped it into both sidebar slices, but then got an erroris not assignable to type 'SidebarItemConfig'.
(full error not posted, it's a big ugly TS error)I asked on Discord and looked through examples and saw the following:
I tried to migrate that to TypeScript:
and got the following error:
If possible, could this module issue be resolved, or could
SidebarItemConfig
be exported in a different way? Thank you!Reproducible demo
No response
Steps to reproduce
SidebarItemConfig
via JS or TS methodologiesExpected behavior
SidebarItemConfig
should be usable in projectsActual behavior
SidebarItemConfig
is unable to be imported due to TypeScript module / type declaration issues.Your environment
Self-service
The text was updated successfully, but these errors were encountered: