Error codesState

Cannot write through an object-rest excluded path

MARKLESS_STATE_REST_ALIAS_EXCLUDED_PATHerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_STATE_REST_ALIAS_EXCLUDED_PATH: Cannot write to "<source>" because "<excludedPathSource>" was excluded when "<aliasName>" was created.
Object rest destructuring creates an alias for the remaining graph paths only. Paths explicitly destructured out of the source object are not owned by the rest alias.
Write through the original graph path, or use the explicit destructured alias for the excluded property.
https://markless.dev/errors/MARKLESS_STATE_REST_ALIAS_EXCLUDED_PATH

Words in angle brackets change from case to case.

Why

Object rest destructuring creates an alias for the remaining graph paths only. Paths explicitly destructured out of the source object are not owned by the rest alias.

Fix

Write through the original graph path, or use the explicit destructured alias for the excluded property.

Where Markless raises it

All error codes