下記のエラーが発生してちょいと困った
[ERROR] Docusaurus Node/SSR could not render static page with path /template-design because of following error:
ReferenceError: atob is not defined
下記のエラーが発生してちょいと困った
[ERROR] Docusaurus Node/SSR could not render static page with path /template-design because of following error:
ReferenceError: atob is not defined
https://docusaurus.io/ のサイトでPlayground
というボタンがあるのでそこをクリックすると https://codesandbox.io/ へのリンクに飛ぶ。 CodeSandbox はGithubのレポジトリを下記のようなURLにすることで開いて npm run install
とnpm run start
までやってくれる。
https://codesandbox.io/embed/github/{{user}}/{{repository}}/tree/main/
さらにURLパラメータで ?module=%2Fsrc%2FDesigner.tsx
とかをつけるとどのファイルを最初に開くかまでも設定してくれる。
これをやることでExampleなどをすぐに試すことができるのでちょいとどんなもんか試すには便利。
自分は https://github.com/pdfme/pdfme-playground のレポジトリに紐づけた下記のリンクをサイトに追加した https://codesandbox.io/embed/github/pdfme/pdfme-playground/tree/main/?module=%2Fsrc%2FDesigner.tsx
サイトを適当に作ってみた。Typoraで更新したものを公開する流れにできた。