-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Describe current Site integration issues with CRA 5 in documentation #2004
Comments
Sounds like you have the insights needed to document this? Are you perhaps interested in contributing? |
Ok, @wooorm – If you direct me to the corresponding documentation sources, then I'll add it :) |
At the bottom of each page on the website is a link “Edit this page on GitHub”, that points you to the file you want to edit. More on how to contribute is explained in the contribution guide: https://mdxjs.com/community/contribute/. |
Good morning, @wooorm :) & first: Thanks for quickly merging #2007 —yet I still can't build the documentation locally:
JSX syntax is not accepted in And—a maybe blasphemous question ;D —why not using |
Use Node 14. Unfortunately Vercel only supports Node 14 currently.
That would not solve the problem here. The problem isn’t which files are loaded. The problem is that custom loaders (e.g., JSX or MDX -> JS) don’t work. |
Which wonderfully works!—& as a side-effect I'm now familiar with NVM!—& #2009 tears down my final contribution barrier :) |
I hit the same issue while generating the docs site with node 18 and indeed node 14 solves it.
|
Are you talking about CRA, per this issue, or about the docs of this project? Re 1: No, this is about the docs site |
talking about the docs with
yep, so if the docs can only be built with Node 14,
Is that documented somewhere? |
Adding
Yes, it’s docmented for every package, e.g.: https://mdxjs.com/packages/mdx/#install |
For how to build the site, see the contribution docs: https://mdxjs.com/community/contribute/#site
The recommendation in the docs is to use a maintained version of Node. That is Node 14 currently. End of the month that will be Node 16: https://github.com/nodejs/Release. |
Agree, Thx also for the infos about current and future support of node. |
Initial checklist
Problem
https://mdxjs.com/docs/getting-started/#create-react-app-cra states that: "There is no need to configure it."
Unfortunately, that's currently not the case with CRA 5 anymore; and many people (including myself) have already spent a lot of time with figuring out reasons & finding workarounds …
Solution
Please add a statement to https://mdxjs.com/docs/getting-started/#create-react-app-cra —briefly describing the situation & maybe directing people to possible workarounds like those discussed in #1870
Alternatives
Just accepting the situation and waiting for facebook/create-react-app#12166 to get fixed …
The text was updated successfully, but these errors were encountered: