Error codesRouter

prefetch={false} sits on something that is not a link

MARKLESS_ELEMENT_ONLY_ATTRIBUTE_MISPLACEDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_ELEMENT_ONLY_ATTRIBUTE_MISPLACED: `<authored>` on <<childComponentName>> does nothing: <childComponentName> does not pass its props to an <tag>.
Only an <tag> acts on `<authored>`. On a component, it works when the component spreads its props (`{...rest}`) onto an <tag> that does not set it itself; anywhere else nothing would act on it and the page would behave as if it were not there.
Put `<authored>` on the <tag> itself, or on a component that spreads its props onto one.
MARKLESS_ELEMENT_ONLY_ATTRIBUTE_MISPLACED: `<authored>` on <<childComponentName>> cannot be checked: this build does not know what <childComponentName> renders.
Only an <tag> acts on `<authored>`. On a component, it works when the component spreads its props (`{...rest}`) onto an <tag> that does not set it itself; anywhere else nothing would act on it and the page would behave as if it were not there.
Put `<authored>` on the <tag> itself, or on a component that spreads its props onto one.
https://markless.dev/errors/MARKLESS_ELEMENT_ONLY_ATTRIBUTE_MISPLACED

Words in angle brackets change from case to case.

Why

Only an <a> acts on prefetch={false}. Here it is on another element, or on a component that does not pass its props on to an <a>, so the router would still request the page early and nothing would tell you.

Fix

Put prefetch={false} on the <a> or <Link> itself. A component of your own can take it when it spreads its props onto its <a> and does not set the same attribute there itself.

export function NavLink({ children, ...rest }: PropsOf<'a'>) @{	<a {...rest}>{children}</a>}<NavLink href="/logout" prefetch={false}>Log out</NavLink>
Where Markless raises it

All error codes