#4361·marko

`catch` not rendering in SSR mode

Author: vwongCreated Sep 30, 2026Updated Sep 30, 2026
Labelstype:unverified bug

Marko Version: 6.4.0

Details

I have the code:

<try>
  <@catch|error|>
    <notification="error">${error.message}</notification>
  </@catch>
  <await|message|=input.value>
    <notification="success">${message}</notification>
  </await>
</try>

Notice the absence of <@placeholder>. This should be pure SSR.

When the promise throws, the error notification is not rendered! I verified this by turning JS off in my browser. However, when I have JS on, the error notification appears as expected.

Possibly related: In the minimal reproduction, the page does not reference any JS bundle - which is fine, but it seems to rely on JS despite the absence of <@placeholder>.

Expected Behavior

The error notification is rendered

Actual Behavior

The error notification is not rendered

Steps to Reproduce

Minimal reproduction https://github.com/vwong/marko6-try-catch