-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution
Description
🐛 Bug Report
When DocSidebar is swizzled, a ModuleNotFoundError occurs due to arrow.svg missing.
Have you read the Contributing Guidelines on issues
Yes.
To Reproduce
-
Initialize a new project by running:
npx @docusaurus/init@latest init my-website classic -
Swizzle the DocSidebar component:
npm run swizzle @docusaurus/theme-classic DocSidebar -
Run docusaurus:
npm start
Expected behavior
No errors should occur.
Actual Behavior
The following error appears in the terminal:
./src/theme/DocSidebar/styles.module.css
ModuleNotFoundError: Module not found: Error: Can't resolve '../icons/arrow.svg' in 'C:\temp\my-website\src\theme\DocSidebar'
@ ./src/theme/DocSidebar/index.js 6:541-581 9:634-640 9:2413-2419 9:2430-2436 9:2478-2484 9:2587-2593 9:2706-2712 9:2755-2761 9:3172-3178 9:3195-3201 9:3303-3309 9:4133-4139
@ ./node_modules/@docusaurus/theme-classic/lib/theme/DocPage/index.js
@ ./.docusaurus/registry.js
@ ./node_modules/@docusaurus/core/lib/client/exports/ComponentCreator.js
@ ./.docusaurus/routes.js
@ ./node_modules/@docusaurus/core/lib/client/clientEntry.js
@ multi ./node_modules/react-dev-utils/webpackHotDevClient.js ./node_modules/@docusaurus/core/lib/client/clientEntry.jsYour Environment
- Docusaurus version used: 2.0.0-alpha.69
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution