๐Ÿ’ผ learn you some erlang 5๋ฒˆ์งธ ๋ฐœํ‘œ
Branch: master
Clone or download
Fetching latest commitโ€ฆ
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
components
snippets
.gitignore
README.md
deck.mdx
package.json
yarn.lock

README.md

lyse-5

learn you some erlang 5๋ฒˆ์งธ ๋ฐœํ‘œ

chapters

development

requires node.js, now

$ yarn
$ yarn start

deploy

$ yarn deploy

link

trouble shoot

์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๋กœ yarn build ์‹คํŒจ์‹œ,

[err] TypeError: Cannot read property 'update' of null
    at new InnerCodeSurfer (/Users/chitacan/playground/lyse-3/node_modules/mdx-deck-code-surfer/dist/deck-code-surfer.js:93:30)
    at processChild (/Users/chitacan/playground/lyse-3/node_modules/react-dom/cjs/react-dom-server.node.development.js:2750:14)
    at resolve (/Users/chitacan/playground/lyse-3/node_modules/react-dom/cjs/react-dom-server.node.development.js:2716:5)
    at ReactDOMServerRenderer.render (/Users/chitacan/playground/lyse-3/node_modules/react-dom/cjs/react-dom-server.node.development.
js:3100:22)
    at ReactDOMServerRenderer.read (/Users/chitacan/playground/lyse-3/node_modules/react-dom/cjs/react-dom-server.node.development.js
:3059:29)
    at renderToString (/Users/chitacan/playground/lyse-3/node_modules/react-dom/cjs/react-dom-server.node.development.js:3526:27)
    at renderHTML (/Users/chitacan/playground/lyse-3/node_modules/mdx-deck/lib/html.js:65:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.

https://github.com/pomber/code-surfer/issues/8#issuecomment-459971226 ์ ์šฉ

edit node_modules/mdx-deck/lib/html.js

   config.externals = [
    nodeExternals({
      whitelist: [
        'mdx-deck',
        'mdx-deck/themes',
-        'mdx-deck/layouts'
+        'mdx-deck/layouts',
+        'mdx-deck-code-surfer'
      ]
    })
  ]