init mdx webpack fails
See original GitHub issueSubject 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
- Linux Mint 19.2
- Node v11, npm v6.7
Steps to reproduce
npm init mdx webpack
+ tar: mdx-master/examples/webpack: Not found in archive
tar: Exiting with failure status due to previous errors
{ Error: Command failed: curl https://codeload.github.com/mdx-js/mdx/tar.gz/master | tar -xz -C webpack-mdx --strip=3 mdx-master/examples/webpack
at checkExecSyncError (child_process.js:637:11)
at execSync (child_process.js:674:13)
at getTar (/home/paul/.npm/_npx/32285/lib/node_modules/create-mdx/node_modules/initit/index.js:37:3)
at create (/home/paul/.npm/_npx/32285/lib/node_modules/create-mdx/node_modules/initit/index.js:57:3)
at Object.<anonymous> (/home/paul/.npm/_npx/32285/lib/node_modules/create-mdx/cli.js:8:1)
at Module._compile (internal/modules/cjs/loader.js:738:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
at Module.load (internal/modules/cjs/loader.js:630:32)
at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
at Function.Module._load (internal/modules/cjs/loader.js:562:3)
status: 2,
signal: null,
output: [ null, null, null ],
pid: 32326,
stdout: null,
stderr: null }
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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Getting started - MDX
If you're using webpack (or Create React App (CRA), Next.js, or Vue CLI, which use it), install and configure @mdx-js/loader. You can also...
Read more >Newest 'mdxjs' Questions - Stack Overflow
I am trying to create a blog in next js using mdx. I am having trouble importing the meta object from my project-setup.mdx...
Read more >Adding MDX Pages | Gatsby
Introduction MDX is Markdown for the component era. It lets you write JSX embedded inside ... Skip the setup and create a new...
Read more >MDX - NextJS - codebook - Ryosuke
Import the MDX files like you would any other React component or NPM dependency. This gives you a parsed version of the MDX...
Read more >Create a Next.js and MDX blog - LogRocket Blog
@mdx-js/loader@next is the integration, provided by MDX for webpack bundlers, that compiles Markdown and MDX into JavaScript.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
but some of those packages don’t exist.
it worked when i ran this instead…
Home that helps!!
Thank you for the feedback @kjgraham! I’ll amend the docs.