Comments (4)
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.
Ah I see! You mentioned that you added
gatsby-embedder-excalidraw
as a Gatsby remark plugin for MDX, but instead you need to addgatsby-remark-embedder
togatsbyRemarkPlugins
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.
You have some libraries missing that are required to run puppeteer
from gatsby-embedder-excalidraw.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-embedder-excalidraw.