Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Render to HTML fails on macOS 12 (Intel): the bundled dart-sass does not start

未关闭
#14,890 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
dart, javascript
领域
build-system, cli

调研方向

Start by reproducing the failure with the minimal test.qmd and inspect the dartCommand and dartCompile entry points shown in quarto.js. Trace how the bundled dart-sass binary is selected for macOS x86_64. Done means HTML rendering and quarto check work on macOS 12 while PDF rendering remains unaffected.

由索引模型根据 Issue 内容生成。

描述

bug
I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

On macOS 12.7.6 (Intel), Quarto 1.10.18 cannot render any document to HTML.
The render stops with the error Theme file compilation failed: and an empty message.
Render to PDF works.
The cause: Quarto 1.10 bundles dart-sass 1.101.0.
The macOS x64 binary of dart-sass contains the Dart VM, and Dart requires macOS 13 or later.
The binary does not start on macOS 12.

Steps to reproduce

Minimum repro

  1. Run echo "hi" > test.qmd.
  2. Run quarto render test.qmd.
Actual behavior
ERROR: Theme file compilation failed:



Stack trace:
    at dartCommand (file:///Applications/quarto/bin/quarto.js:79972:11)
    at async dartCompile (file:///Applications/quarto/bin/quarto.js:79926:3)
    at async SassCache.setFromHash (file:///Applications/quarto/bin/quarto.js:80089:11)
    at async compileSass (file:///Applications/quarto/bin/quarto.js:87474:19)
    at async resolveSassBundles (file:///Applications/quarto/bin/quarto.js:125332:17)
    ...

The message after the colon is empty.

Render to PDF works on the same machine.
PDF output does not use dart-sass.

Expected behavior

Expected result: Quarto creates test.html.

Your environment
  • macOS 12.7.6, Intel (x86_64)
  • Quarto 1.10.18, installed at /Applications/quarto
  • No project is necessary. The error occurs in an empty directory.
Quarto check output

quarto check fails with the same error.

主要语言
JavaScript
星标
6.1k
派生
466
平均合并
20 小时 30 分钟
30 天内合并 PR
60

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto-cli 的其他 Issue

查看 quarto-dev/quarto-cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。