Closed
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clear
oryarn clear
command. - I have tried
rm -rf node_modules yarn.lock package-lock.json
and re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
When the end-of-line sequence is CRLF, it will cause a TabItem compilation error.
Reproducible demo
https://codesandbox.io/p/devbox/vigorous-roentgen-y2nwf6
Steps to reproduce
2.set end-of-line is CRLF
3.An error occurred while accessing the page
ERROR
Expected component TabItem
to be defined: you likely forgot to import, pass, or provide it.
Expected behavior
if end-of-line is LF,it will success run. i will hope fix CRLF question
Actual behavior
Your environment
- Public source code:
- Public site URL:
- Docusaurus version used:3.1.1
- Environment name and version (e.g. Chrome 89, Node.js 16.4):Chrome 122 x64 ,Node.js v20.9.0
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Window 11 23H2
Self-service
- I'd be willing to fix this bug myself.