redotvideo / revideo

Create Videos with Code
https://re.video
MIT License
2.58k stars 87 forks source link

JS support #305

Open hkonsti opened 1 month ago

hkonsti commented 1 month ago

I think there are some issues when writing Revideo code with Javascript instead of Typescript.

Discord discussion: https://discord.com/channels/1124830896143474770/1222126467329298493/1288463808288915582

Could not resolve entry module "./src/project.ts?project".
Error building project: Error [RollupError]: Could not resolve entry module "./src/project.ts?project"

also i am not able to open the visual editor in js, I am getting this error

4:58:09 PM [vite] Internal server error: Failed to resolve import "./src/project.ts?project" from "virtual:editor". Does the file exist? 
  Plugin: vite:import-analysis
  File: virtual:editor:2:22
  1  |  import {editor} from '@revideo/ui';
  2  |  import project from './src/project.ts?project';
     |                       ^
  3  |  editor(project);