Closed pshrmn closed 5 years ago
following -- i'm getting the same error
Apologies, there isn't a webpack example yet! 😬 In the meantime feel free to try any of the existing directories in the examples directory.
npm init mdx next
npm init mdx gatsby
npm init mdx parcel
thanks @johno! ... i built my react app from scratch (using no starter kit ... just react/webpack/babel/typescript). how would i load in mdx?
You can follow along the new v1 docs which are a bit more thorough: https://v1.mdxjs.com/getting-started/webpack
Let me know if you encounter any issues. I'd appreciate any feedback as well.
Thanks @johno it worked! Your a life saver!
Here's some feedback on the new docs...
The last sentence in the docs says to run this command
npm install --save-dev @babel/env @babel/react @babel/proposal-object-rest-spread
but some of those packages don't exist.
it worked when i ran this instead...
npm install --save-dev @babel/preset-env @babel/preset-react @babel/plugin-proposal-object-rest-spread
Home that helps!!
Thank you for the feedback @kjgraham! I'll amend the docs.
Subject of the issue
Initializing a Webpack project, as specified on the getting started page of the documentation, fails because there is no
examples/webpack
directory.Your environment
Steps to reproduce
Tell us how to reproduce this issue. Please provide a working and simplified example.
🎉 BONUS POINTS for creating a minimal reproduction and uploading it to GitHub. This will get you the fastest support. 🎉
Expected behaviour
What should happen?
Successful setup
Actual behaviour
What happens instead?
An error is thrown because
examples/webpack
does not exist.