-
-
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
/Users/x/Projects/docs-v2/node_modules/clean-css/lib/optimizer/level-2/properties/populate-components.js:30
throw e;
^
TypeError: Cannot read property '0' of undefined
at Object.font [as breakUp] (/Users/x/Projects/docs-v2/node_modules/clean-css/lib/optimizer/level-2/break-up.js:303:91)
at populateComponents (/Users/x/Projects/docs-v2/node_modules/clean-css/lib/optimizer/level-2/properties/populate-components.js:17:42)
at /Users/x/Projects/docs-v2/node_modules/clean-css/lib/optimizer/level-2/remove-unused-at-rules.js:141:9Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
(Write your steps here:)
- npx @docusaurus/init@latest init my-website classic
- Add a font on custom.css
@font-face {
font-family: 'Manrope';
src: url("/fonts/Manrope.ttf") format("truetype");
font-style: normal;
font-display: swap
}If I remove this code from the css file, the crash disappears.
- Add a font.ttf in static folder
- Run
yarn build
Expected behavior
To not crash
Your Environment
- Docusaurus version used:
2.0.0-alpha.69 - Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Node v12.16.0
Reproducible Demo
I'll post one asap
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