[go: nahoru, domu]

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

Get an error when starting the program "Cannot read properties of undefined (reading 'replace')" #1823

Closed
5 tasks done
acceleratorlastorder opened this issue Dec 22, 2023 · 9 comments

Comments

@acceleratorlastorder
Copy link
acceleratorlastorder commented Dec 22, 2023

I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first

Operating System

Windows 10

Steps to reproduce

Download the LosslessCut-win-x64.7z unpack it, and double click on the LosslessCut.exe

Expected behavior

Being able to drop in or click on open file to start a project

Actual behavior

Error on start
image

Share log

TypeError: Cannot read properties of undefined (reading 'replace')
at xe (file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:167:13763)
at R.U._bindMultiple (file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:167:14141)
at R.bind (file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:167:14306)
at file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:167:15681
at Array.forEach ()
at file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:167:15649
at jv (file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:40:24283)
at Dd (file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:40:42406)
at file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:40:40723
at $ (file:///C:/LosslessCut-win-x64/resources/app.asar/vite-dist/assets/index-18074aaf.js:25:1658)

{
"err": {},
"platform": "win32",
"version": "3.59.0"
}

I hope this can help !

Best regards.

@mifi
Copy link
Owner
mifi commented Dec 22, 2023

hi. does this happen right as you start the app or do you press any buttons or do anything?

@mifi
Copy link
Owner
mifi commented Dec 22, 2023

oops I found the issue. will release a new version with a fix

@mifi
Copy link
Owner
mifi commented Dec 22, 2023

🚨‼️ After upgrading you need to delete your configuration file config.json inside LosslessCut folder inside your %APPDATA%. See how to find APPDATA

@mifi
Copy link
Owner
mifi commented Dec 22, 2023

alternatively you can fix it before upgrading by editing config.json and find "key": "f" and replace it with "keys": "f" (note the added s)

@mifi
Copy link
Owner
mifi commented Dec 22, 2023

fixed in 5d8fd42

@mifi mifi closed this as completed Dec 22, 2023
@Hrxn
Copy link
Hrxn commented Dec 22, 2023

@mifi I'm still on LosslessCut 3.58.0 at the moment, yet wanted to make the changes you suggested in your last comment, and my config.json does not have any "key": JSON values, instead it looks like this:

..
	"keyBindings": [
		{
			"keys": "plus",
			"action": "addSegment"
		},
		{
			"keys": "space",
			"action": "togglePlayResetSpeed"
		},
		{
			"keys": "k",
			"action": "togglePlayNoResetSpeed"
		},
..

How come? Or was this only the default association to this one very specific keybind?

@mifi
Copy link
Owner
mifi commented Dec 23, 2023

You only need to make the change if you installed 59.0 for the first time

@Hrxn
Copy link
Hrxn commented Dec 23, 2023

Got it, thanks!

@acceleratorlastorder
Copy link
Author

Thanks a lot and good job!

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

3 participants