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

[Bug]: TypeError: Cannot read properties of undefined (reading 'compile_svg') #59

Open
Schabolon opened this issue Jun 27, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Schabolon
Copy link

I just updated Obsidian to v1.6.5 and now TypeError: Cannot read properties of undefined (reading 'compile_svg') gets displayed for every typst-field.
This happens for math-fields (with $ or $$) and code-blocks.
I am running linux.

Obsidian Version: v1.6.5

@fenjalien
Copy link
Owner

I can't reproduce this on Windows but I don't have a Linux machine. Is the same issue present on a new vault with just this plugin installed, with a note with only a typst block?

@Schabolon
Copy link
Author

Yes, the same thing happens in a new vault with only the obsidian-typst plugin installed:
image
(in this case compile_image, on my other vault I use svg)

Screenshot of the console in the new vault:
image

If you need any more information feel free to reach out.

@Schabolon
Copy link
Author

Debug Info from Obsidian (in the new Vault):

SYSTEM INFO:
	Obsidian version: v1.6.5
	Installer version: v1.6.5
	Operating system: #1 SMP PREEMPT_DYNAMIC Fri, 21 Jun 2024 21:05:23 +0000 6.6.35-2-lts
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 1
	Plugins enabled: 1
		1: Typst Renderer v0.10.0

@fenjalien
Copy link
Owner

Welll shoot, I've just updated my Obsidian installer to 1.6.5 and it looks like something is wrong with the webassembly in the web worker. This is a pretty serious problem...

@fenjalien fenjalien added the bug Something isn't working label Jun 28, 2024
@fenjalien fenjalien pinned this issue Jun 28, 2024
@d-kaue
Copy link
Contributor

d-kaue commented Jun 28, 2024

Welll shoot, I've just updated my Obsidian installer to 1.6.5 and it looks like something is wrong with the webassembly in the web worker. This is a pretty serious problem...

I don't know about web assembly, what I can help with is simply opinionated.

According to the changelog version 1.6.5, the installer is using Electron v30.1.2, and currently has a WebWorker related fix in Electron v31.1.0.

Is there any connection?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants