forked from 77media/video-flow
修复构建报错
This commit is contained in:
parent
16e92ea42b
commit
82b29a0283
@ -14,7 +14,7 @@ const OAuthCallbackHandler = dynamic(
|
|||||||
);
|
);
|
||||||
|
|
||||||
const DevHelper = dynamic(
|
const DevHelper = dynamic(
|
||||||
() => import('@/utils/dev-helper').then(mod => mod.default),
|
() => import('@/utils/dev-helper').then(mod => (mod as any).default),
|
||||||
{ ssr: false }
|
{ ssr: false }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -43,6 +43,7 @@ interface StoryboardContent {
|
|||||||
interface StoryboardArtistProps {
|
interface StoryboardArtistProps {
|
||||||
currentContent: StoryboardContent;
|
currentContent: StoryboardContent;
|
||||||
isPlaying: boolean;
|
isPlaying: boolean;
|
||||||
|
sketchType: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const StoryboardArtist: React.FC<StoryboardArtistProps> = ({ currentContent, isPlaying }) => {
|
const StoryboardArtist: React.FC<StoryboardArtistProps> = ({ currentContent, isPlaying }) => {
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
import { FC } from 'react';
|
||||||
|
|
||||||
export default function DevHelper() {
|
const DevHelper = (() => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// 在客户端环境下设置全局错误处理
|
// 在客户端环境下设置全局错误处理
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
@ -25,4 +26,6 @@ export default function DevHelper() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}) as FC;
|
||||||
|
|
||||||
|
export default DevHelper;
|
||||||
Loading…
x
Reference in New Issue
Block a user