Skip to content

Fix issues on Windows #3213

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

Merged
merged 2 commits into from
Aug 19, 2020
Merged

Fix issues on Windows #3213

merged 2 commits into from
Aug 19, 2020

Conversation

vladar
Copy link
Contributor

@vladar vladar commented Aug 19, 2020

This PR addresses several issues on Windows outlined in #3012

The following error is fixed by upgrading to the latest version of gatsby-remark-code-repls plugin (via 7323558):

D:\reactjs.org\public\page-data\D:\reactjs.org\example\es5-syntax-example\page-data.json

The GraphQL part is fixed by this commit: 7f6c699. Gatsby uses slash to normalize all paths with forward-slash. So path.join actually breaks things on Windows there.

Fixes #3012

vladar added 2 commits August 19, 2020 16:17
Gatsby uses `slash` to normalize paths. Because of this `path.join` causes an issue on Windows
@facebook-github-bot
Copy link
Collaborator

Hi @vladar!

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Collaborator

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@rickhanlonii rickhanlonii merged commit 81bfee9 into reactjs:master Aug 19, 2020
@reactjs-bot
Copy link

Deploy preview for reactjs ready!

Built with commit 7f6c699

https://deploy-preview-3213--reactjs.netlify.app

@uc-deepak
Copy link

uc-deepak commented Dec 27, 2020

done the recommended changes as specified here, still getting this error:
image

npm run dev error

@vladar - Please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There was an error in your GraphQL query
5 participants