Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when I try to run on my Windows 10 PC #3

Closed
byomartin opened this issue Dec 15, 2022 · 3 comments
Closed

Error when I try to run on my Windows 10 PC #3

byomartin opened this issue Dec 15, 2022 · 3 comments
Assignees

Comments

@byomartin
Copy link

`C:\Users\admin\Desktop\capcut-srt-export-main>node index.js
C:\Users\admin\Desktop\capcut-srt-export-main\index.js:30
if (re.exec(i.content)[1].substring(0,1) === '<') {
^

TypeError: Cannot read properties of null (reading '1')
at ←[90mC:\Users\admin\Desktop\capcut-srt-export-main\←[39mindex.js:30:25
at Array.map ()
at Object. ←[90m(C:\Users\admin\Desktop\capcut-srt-export-main\←[39mindex.js:28:37←[90m)←[39m
←[90m at Module._compile (node:internal/modules/cjs/loader:1159:14)←[39m
←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:1037:32)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:878:12)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m
←[90m at node:internal/main/run_main_module:23:47←[39m

Node.js v18.12.1`

It's ridiculous because I run it 3 times before without problem.

@vogelcodes
Copy link
Owner

Can you send me your draft_content.json to danielcvt@gmail.com?

@vogelcodes vogelcodes self-assigned this Dec 15, 2022
@vogelcodes vogelcodes pinned this issue Dec 15, 2022
@byomartin
Copy link
Author

Can you send me your draft_content.json to danielcvt@gmail.com?

it's here https://pastebin.com/raw/aC0y6ekW

thank you for quick reply.

@vogelcodes
Copy link
Owner

Hi. It seems your project file had mixed syntax for the subtitles content which caused a bug. I wrote a quick fix that solved the issue. Download the script again from github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants