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.

Dev build fails when rebuilding presentation

See original GitHub issue

Hello! I have a very simple presentation that builds successfully the first time, but then fails to rebuild once a change is made. If you simply save the file, the build does not fail, but any modification results in the following error:

Error: Command failed with exit code 1 (EPERM): gatsby develop --host localhost --port 8000 --open
    at makeError (/app/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/app/node_modules/execa/index.js:112:26)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

The code is running within a docker container. Here’s the docker-compose file:

version: "3.6"
services:
    present:
        image: node
        volumes:
            - ./:/app
        ports:
            - "8000:8000"
        working_dir: /app
        entrypoint: ["npm"]
        command: ["start"]
    npm:
        image: node
        volumes:
            - ./:/app
        working_dir: /app
        entrypoint: ["npm"]
        command: ["--version"]

The present service issues the following npm command as defined in the “package.json” file:

"start": "mdx-deck presentation.mdx"

The actual presentation, saved as “presentation.mdx”, is as follows:

# Presentation Title

---

# About Me

Here’s how to setup and reproduce the issue (docker commands are run with sudo on my machine):

  1. Install the framework: docker-compose run --rm npm i -D mdx-deck
  2. Run the presentation service: docker-compose run --rm --service-ports present
  3. The build will finish and you can see the presentation in the browser of the host
  4. Save the “presentation.mdx” file without making any modifications
  5. Notice that the info statement is logged, but the service remains stable
  6. Modify the “presentation.mdx” file and save
  7. The error mentioned above appears and the docker service dies

I noticed issue #416 which had a very similar error, but the “package-lock.json” file shows the gatsby-plugin-compile-es6-packages package as being installed at version “2.1.0”.

I also tested making the changes within the container to eliminate the possibility of filesystem issues. No matter how the presentation is modified, the error still occurs.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:18
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

15reactions
Nedomascommented, Dec 10, 2019

For anybody looking for a quick workaround in the meantime, just add this to your package.json (if you’re using yarn):

"resolutions": {
  "mdx-deck/**/gatsby": "2.18.4"
}
8reactions
karlhorkycommented, Dec 11, 2019

@jxnblk opened a PR to pin the Gatsby version to fix this here: #603

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rebuild Solution Fails - Visual Studio Feedback
When I do "Rebuild Solution", it will fail. If I then "Build Solutin", it will succeed. According to my testing, the error is...
Read more >
ember build --watch fails to rebuild when template is broken
If template is broken (ie invalid html) when you initially fire off the ember build --watch command it fails to start the deamon...
Read more >
Can't open my project - "Try rebuilding from source manually"
Try selecting the folder in Windows and right-click > Properties > Uncheck 'Read-Only' and apply it to all sub-folders. Then try to open...
Read more >
Errors at build solution - nopCommerce
I have tried everything - clean solution, rebuild build, delete bin folder from presentation nop.web, dleete suo file.... Then I have closed visual...
Read more >
Troubleshooting App Thinning and Bitcode Build Failures
If the failure is due to a third-party library used in your app, you may need to work with the library provider to...
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