修复构建报错

This commit is contained in:
北枳 2025-07-26 12:34:48 +08:00
parent 16e92ea42b
commit 82b29a0283
3 changed files with 7 additions and 3 deletions

View File

@ -14,7 +14,7 @@ const OAuthCallbackHandler = dynamic(
);
const DevHelper = dynamic(
() => import('@/utils/dev-helper').then(mod => mod.default),
() => import('@/utils/dev-helper').then(mod => (mod as any).default),
{ ssr: false }
);

View File

@ -43,6 +43,7 @@ interface StoryboardContent {
interface StoryboardArtistProps {
currentContent: StoryboardContent;
isPlaying: boolean;
sketchType: string;
}
const StoryboardArtist: React.FC<StoryboardArtistProps> = ({ currentContent, isPlaying }) => {

View File

@ -1,8 +1,9 @@
'use client';
import { useEffect } from 'react';
import { FC } from 'react';
export default function DevHelper() {
const DevHelper = (() => {
useEffect(() => {
// 在客户端环境下设置全局错误处理
if (typeof window !== 'undefined') {
@ -25,4 +26,6 @@ export default function DevHelper() {
}, []);
return null;
}
}) as FC;
export default DevHelper;