Coder Social home page Coder Social logo

Comments (4)

trevorblades avatar trevorblades commented on June 15, 2024

Ah I see! You mentioned that you added gatsby-embedder-excalidraw as a Gatsby remark plugin for MDX, but instead you need to add gatsby-remark-embedder to gatsbyRemarkPlugins and then require this library as a custom transformer.

You can see this technique being used in the example here: https://github.com/excalidraw/gatsby-embedder-excalidraw#configure-plugins

from gatsby-embedder-excalidraw.

denvash avatar denvash commented on June 15, 2024

Ah I see! You mentioned that you added gatsby-embedder-excalidraw as a Gatsby remark plugin for MDX, but instead you need to add gatsby-remark-embedder to gatsbyRemarkPlugins and then require this library as a custom transformer.

You can see this technique being used in the example here: https://github.com/excalidraw/gatsby-embedder-excalidraw#configure-plugins

The config is configured according to docs.

plugins: [
    {
      resolve: "gatsby-plugin-mdx",
      options: {
        gatsbyRemarkPlugins: [
          {
            resolve: "gatsby-remark-embedder",
            options: {
              customTransformers: [require("gatsby-embedder-excalidraw")]
            }
          }
        ]
      }
    }
  ]

As I mentioned, there is a reproducible example of the problem in codesandbox, and the example in this repo not working as well.

Here is the error (appeared in the sandbox, on local it stuck)

  Error: The following error appeared while processing 'https://excalidraw.com/#  json=5695519967936512,sLhjTgn1_wB1iVLLquX6Fg':
  Failed to launch the browser process!
  /sandbox/node_modules/puppeteer/.local-chromium/linux-756035/chrome-linux/chro  me: error while loading shared libraries: libX11-xcb.so.1: cannot open shared   object file: No such file or directory
  TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troub  leshooting.md

from gatsby-embedder-excalidraw.

codepunkt avatar codepunkt commented on June 15, 2024

You have some libraries missing that are required to run puppeteer

from gatsby-embedder-excalidraw.

trevorblades avatar trevorblades commented on June 15, 2024

@denvash I just published a new version a few days ago that should address any existing build hanging or failing issues. Could you please install gatsby-embedder-excalidraw@latest and try again? We were seeing some issues with newer versions of puppeteer (a dependency of this plugin), so make sure to clear out old dependencies before reinstalling. 😇

from gatsby-embedder-excalidraw.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.