Open callumlocke opened 2 years ago
This is a defunct project. It is no use banging in the wall to make it work with updated technology like new versions of gatsby or nodejs. If you want to use it, you have to stick to old versions of node and gatsby.
@c0h1b4 which version do you recommend?
@Jossdz take a look at this example: https://codesandbox.io/s/github/jxnblk/mdx-deck/tree/master/examples/syntax-highlighting?file=/deck.mdx. I was able to get this working with theme imports using node v16.14.2
I was able to make it work using an existing package-lock.json
, namely this one.
First time user. MDX Deck looks great... But I just followed the Getting Started steps precisely (in a new, blank project, nothing weird going on), and
npm start
just errors out after a few seconds.My setup:
TERMINAL OUTPUT
``` > start > mdx-deck deck.mdx info Deleting .cache, public, /Users/callum/code/decks/my-first-deck/node_modules/mdx-deck/node_modules/.cache/babel-loader, /Users/callum/code/decks/my-first-deck/node_modules/mdx-deck/node_modules/.cache/terser-webpack-plugin info Successfully deleted directories /Users/callum/code/decks/my-first-deck/node_modules/gatsby-recipes/dist/graphql-server/server.js:52 var remarkMdx = require('remark-mdx'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/callum/code/decks/my-first-deck/node_modules/gatsby-recipes/node_modules/remark-mdx/index.js from /Users/callum/code/decks/my-first-deck/node_modules/gatsby-recipes/dist/graphql-server/server.js not supported. Instead change the require of index.js in /Users/callum/code/decks/my-first-deck/node_modules/gatsby-recipes/dist/graphql-server/server.js to a dynamic import() which is available in all CommonJS modules. at Object.