Error codesAsync

An async value is read outside @try

MARKLESS_ASYNC_BOUNDARY_REQUIREDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_ASYNC_BOUNDARY_REQUIRED: Cannot read <computedLabel> "<source>" outside @try/@pending/@catch. Wrap the read in an async boundary.
Async computed values can be pending or rejected during initial render and resume. The runtime needs an explicit TSRX async boundary to render pending and error UI.
Wrap this template read in @try with @pending and @catch branches, or read a sync computed that is already guarded by an async boundary.
https://markless.dev/errors/MARKLESS_ASYNC_BOUNDARY_REQUIRED

Words in angle brackets change from case to case.

Why

An async computed() can still be loading, or it can fail. The page needs to know what to show in both cases.

Fix

Put the read inside @try, with a @pending branch for loading and a @catch branch for failure.

@try {	<p>{details.title}</p>} @pending {	<p>Loading</p>} @catch {	<p>Could not load</p>}
Where Markless raises it

All error codes