Skip to content

lib.typ 报错 error occurred in this call of function anti-header #2

Description

@jiucenglou

在 vscode tinymist 最新版打开后,无法预览,提示 lib.typ 中有错误:error occurred in this call of function anti-header,能否修复下?谢谢!

[{
	"resource": "/C:/Users/HiWin10/AppData/Local/typst/packages/preview/anti-matter/0.0.2/src/lib.typ",
	"owner": "_generated_diagnostic_collection_name_#0",
	"severity": 8,
	"message": "only element functions can be used as selectors\n\nHint: Typst 0.13 has introduced breaking changes. Try downgrading Tinymist to v0.12 to use a compatible version of Typst, or consider migrating your code according to [this guide](https://typst.app/blog/2025/typst-0.13/#migrating).",
	"source": "typst",
	"startLineNumber": 142,
	"startColumn": 12,
	"endLineNumber": 142,
	"endColumn": 59,
	"relatedInformation": [
		{
			"startLineNumber": 168,
			"startColumn": 9,
			"endLineNumber": 168,
			"endColumn": 32,
			"message": "error occurred in this call of function `anti-header`",
			"resource": "/C:/Users/HiWin10/AppData/Local/typst/packages/preview/anti-matter/0.0.2/src/lib.typ"
		},
		{
			"startLineNumber": 20,
			"startColumn": 3,
			"endLineNumber": 20,
			"endColumn": 38,
			"message": "error occurred in this call of function `anti-matter`",
			"resource": "/C:/Users/HiWin10/AppData/Local/typst/packages/preview/modern-bnu-thesis/0.0.1/layouts/preface.typ"
		},
		{
			"startLineNumber": 95,
			"startColumn": 7,
			"endLineNumber": 95,
			"endColumn": 40,
			"message": "error occurred in this call of function `preface`",
			"resource": "/C:/Users/HiWin10/AppData/Local/typst/packages/preview/modern-bnu-thesis/0.0.1/lib.typ"
		}
	]
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions