question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

init mdx webpack fails

See original GitHub issue

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

  • 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kjgrahamcommented, Mar 7, 2019

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!!

0reactions
johnocommented, Mar 7, 2019

Thank you for the feedback @kjgraham! I’ll amend the docs.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found