Error: eval js error: TypeError
Closed this issue ยท 11 comments
Hi there
I have downloaded this version of the clive
https://github.com/koki-develop/clive/releases/tag/v0.12.4
clive_Linux_x86_64.tar.gz
and I've got the ttyd package installed.
I've run ./clive init
and created the default clive.yml
file.
with the default config when I run ./clive start
I get the following error:
Error: eval js error: TypeError: Cannot set properties of undefined (setting 'fontSize')
at <anonymous>:1:51
at <anonymous>:1:57 <nil>
also when I run ./clive validate
I get the following:
Config file clive.yml is valid!
here's my uname -a
result:
Linux devops 5.19.0-41-generic #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
a chrome window starts and closes immediately!
@sinawic
Thank you for opening the issue!
Could you please tell me the result of running the following command?
ttyd --version
ttyd --version
ttyd version 1.6.3
@sinawic
Thank you!
It appears that this problem may occur if the version of ttyd is less than 1.7.0.
Could you please try again after upgrading ttyd to version 1.7.0 or higher?
I installed the ttyd package using apt
and it seems the version you mentioned does not exist on the package manager.
do you think I should install it from the source or?
thank you so much. the problem seems to be solved now with ttyd version 1.7.3
I guess it's better mentioning it on the docs!
if you want I can make a pr tho
oh I just realized you already updated the relative section in readme.
also I wanted a feature for the ttyd to exit after the execution is finished.
maybe a specific config in yml file
I tried
- type: exit
- key: enter
but it doesn't exit the ttyd process
the problem seems to be solved now with ttyd version 1.7.3
I'm glad to hear that. ๐
Thank you for checking and letting us know!!
I was able to identify this problem thanks to your report!!
also I wanted a feature for the ttyd to exit after the execution is finished.
cLive should automatically terminate the ttyd process upon exit, isn't it working properly?
Even executing exit
won't terminate the ttyd process (this is a specification of ttyd).
uh I'm sorry
this is not at all a bug
by passing skipPauseBeforeQuit: true
I get my expected result
I read the docs but didn't understand it meant the same thing I wanted.
thanks for the response ๐
Ah, I see, is that so!
I'm really glad I could help with solving the problem!
If there's anything else, feel free to open another issue! ๐