From 3952fd8312a20bbbb1dc4ec2f2d66e9f1d773a7e Mon Sep 17 00:00:00 2001 From: Jinbao1001 Date: Fri, 28 Jun 2024 10:26:05 +0800 Subject: [PATCH] fix: dom crash with ssr hydrate error (#49576) * fix: ssr hydrate error * deps: lock react and react-dom * chore: script react/react-dom --nosave * chore(deps): update dumi version * chore: back #49595 * chore(deps): update dumi --- .dumi/theme/plugin.ts | 44 ------------------------------------------- .dumirc.ts | 9 +++++++-- mako.config.json | 3 +++ package.json | 4 ++-- 4 files changed, 12 insertions(+), 48 deletions(-) diff --git a/.dumi/theme/plugin.ts b/.dumi/theme/plugin.ts index 70f38e2983..b6a75b2482 100644 --- a/.dumi/theme/plugin.ts +++ b/.dumi/theme/plugin.ts @@ -181,26 +181,6 @@ const RoutesPlugin = (api: IApi) => { // exclude dynamic route path, to avoid deploy failed by `:id` directory .filter((f) => !f.path.includes(':')) .map((file) => { - let globalStyles = ''; - - // Debug for file content: uncomment this if need check raw out - // const tmpFileName = `_${file.path.replace(/\//g, '-')}`; - // const tmpFilePath = path.join(api.paths.absOutputPath, tmpFileName); - // fs.writeFileSync(tmpFilePath, file.content, 'utf8'); - - // extract all emotion style tags from body - file.content = file.content.replace( - /