Skip to content

Quarto CLI 1.9.37 breaks extension with message "TypeError: Cannot read properties of undefined (reading 'reduce') " #958

@barendgehrels

Description

@barendgehrels

Bug description

Brew upgrade did a quarto upgrade to 1.9.37 and since then I could not use the extension anymore.

I use version:

Identifier quarto.quarto
Version 1.131.0
Last Updated 45 minutes ago
Size 30.55MB
Marketplace Published 4 years ago
Last Released 3 weeks ago

First I downgraded the extension but that did not help.

The error trace (for both) is:

  - Extension Host stack trace:                                                                                  
  TypeError: Cannot read properties of undefined (reading 'reduce')                                              
      at mz (.../quarto.quarto-1.120.0/out/main.js:77:4264)                                                      
      at o4 (.../quarto.quarto-1.120.0/out/main.js:77:4201)                                                      
      at YIe (.../quarto.quarto-1.120.0/out/main.js:359:12019)                                                   
      at IX (.../quarto.quarto-1.120.0/out/main.js:359:11387)                                                    
      at Object.slideIndex (.../quarto.quarto-1.120.0/out/main.js:395:3705)                                      
      at AE (.../quarto.quarto-1.120.0/out/main.js:516:1441)                                                     
      at LH.renderFormat (.../quarto.quarto-1.120.0/out/main.js:479:32499)                                                              

and

2026-05-02 11:20:05.221 [error] TypeError: Cannot read properties of undefined (reading 'reduce')
	at _z (/Users/.../.vscode/extensions/quarto.quarto-1.131.0/out/main.js:77:5464)
	at d4 (/Users/.../.vscode/extensions/quarto.quarto-1.131.0/out/main.js:77:5401)
	at Cke (/Users/.../.vscode/extensions/quarto.quarto-1.131.0/out/main.js:359:12030)
	at FX (/Users/.../.vscode/extensions/quarto.quarto-1.131.0/out/main.js:359:11398)
	at Object.slideIndex (/Users/.../.vscode/extensions/quarto.quarto-1.131.0/out/main.js:395:3705)
	at hE (/Users/.../.vscode/extensions/quarto.quarto-1.131.0/out/main.js:495:1598)
	at vH.renderFormat (/Users/.../.vscode/extensions/quarto.quarto-1.131.0/out/main.js:427:32456) quarto.preview {"value":"quarto.quarto","_lower":"quarto.quarto"}

Steps to reproduce

Upgrade to 1.9.37 and try a preview in VS Code. Even a .qmd file with just # title will give this error

Workaround: downgrade to 1.8.27 fixes the problem (also with latest extension).

The "quarto inspect" output will be different for both versions.

Actual behavior

It gives a popup with Cannot read properties of undefined (reading 'reduce') and nothing more.

The stacktrace can be found in Output, "Extension Host"

Expected behavior

It should give the preview as before

Your environment

  • IDE: VS Code
  • OS: MacOS Tahoe 26.4.1
Version: 1.118.1 (Universal)
Commit: 034f571df509819cc10b0c8129f66ef77a542f0e
Date: 2026-04-29T17:36:44+03:00 (3 days ago)
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions