-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugins fail on Windows #27
Comments
Inconsistent path addresses between Mac and Windows (Mac:/ Windows: \), resulting in plugin failure on Windows |
I don't have a windows machine to test out, and the issue description is vague. Can you further elaborate the issue you're seeing? |
In @whyframe/jsx/src/docusaurus.cjs, the matching rule for rule @docusaurus/mdx-loader in Windows is actually @Docusaurus\mdx-loader, which causes the loader to fail to mount |
There is also an issue with the 'this. resource' in loader.cjs. Change it to path.relative(__dirname, this.resource).split(path.sep).join('/') and run it |
Sorry for the late reply, thanks for digging into this!
Feel free to send a PR for the two changes too. Don't think we need tests for those for now, I should update CI to also run them in Windows. |
Inconsistent path addresses between Mac and Windows (Mac:/ Windows: ), resulting in plugin failure on Windows
The text was updated successfully, but these errors were encountered: