From b114c00e4ce0f1d9cf27e96dc3208ffb3758c18a Mon Sep 17 00:00:00 2001 From: mosugi Date: Fri, 19 May 2023 18:01:39 +0900 Subject: [PATCH] fix: Problem that Code block is not displayed if even one import fails. --- components/NotionPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index 9e88530..3cbbe2b 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -35,7 +35,7 @@ import styles from './styles.module.css' const Code = dynamic(() => import('react-notion-x/build/third-party/code').then(async (m) => { // add / remove any prism syntaxes here - await Promise.all([ + await Promise.allSettled([ import('prismjs/components/prism-markup-templating.js'), import('prismjs/components/prism-markup.js'), import('prismjs/components/prism-bash.js'),