代码之家  ›  专栏  ›  技术社区  ›  Shubham Verma

远程处理错误:模块“远程处理”没有导出的成员“OffthreadVideo”

  •  0
  • Shubham Verma  · 技术社区  · 1 年前

    我正在使用 remotion 我的视频编辑器,现在我面临新的问题 Module "remotion" has no exported member 'OffthreadVideo'. ,早些时候运行良好。

    import { AbsoluteFill, OffthreadVideo, staticFile } from "remotion";
    
    export const VideoWithText: React.FC<{
      link: any;
    }> = ({ link }) => {
      const loacFileUrl = staticFile(link);
      return (
        <AbsoluteFill>
          <OffthreadVideo
            src={loacFileUrl}
            // Rest property
          />
        </AbsoluteFill>
      );
    };
    
    1 回复  |  直到 1 年前
        1
  •  0
  •   Shubham Verma    1 年前

    我通过导入探索并解决了错误 Video 从…起 import {Video} from 'remotion'; 相反 import { OffthreadVideo } from "remotion";

    这是我的工作代码:

    import { AbsoluteFill, Video, staticFile } from "remotion";
    
    export const VideoWithText: React.FC<{
      link: any;
    }> = ({ link }) => {
      const loacFileUrl = staticFile(link);
      return (
        <AbsoluteFill>
          <Video
            src={loacFileUrl}
            // Rest property
          />
        </AbsoluteFill>
      );
    };