---
title: MARKLESS_SHARED_CALL_UNRESOLVED
description: "Shared definition call does not resolve: a Markless compiler error."
sidebar: { hidden: true }
search: { keywords: ["SHARED_CALL_UNRESOLVED","shared call unresolved","markless error"] }
pagination: false
---

**Error** from the compiler, while it builds your `.tsrx` files.

## What happened

Markless prints the message, the reason, and a suggestion:

```text
MARKLESS_SHARED_CALL_UNRESOLVED: `<callSource>` reaches no shared() definition. <resolves>
A call the compiler cannot resolve to a shared() definition creates no graph instance, so every read of it would render a dead value and every write would go nowhere — silently, at runtime.
Export the definition from the module this call names, and compile that module in this build. Before: `export const famState = shared(() => ..., { scope: 'widget' })` in `fam.tsrx` with nothing re-exporting it; after: `export { famState as state } from './fam.tsrx';` in the family index, so `fam.state()` names it.
https://markless.dev/errors/MARKLESS_SHARED_CALL_UNRESOLVED
```

Words in angle brackets change from case to case.

## How to fix it

Start with the suggestion in the message above.

This page has no guide yet. [Help write it](/contributing/improve-these-docs).

## Where it comes from

`@markless/compiler` raises this code. Source:

- [packages/compiler/src/passes/semantic-graph/collect-shared.ts](https://github.com/compiled-run/markless/blob/main/packages/compiler/src/passes/semantic-graph/collect-shared.ts)

Read [how to read a Markless error](/tooling/diagnostics), or go back to [all error codes](/errors).
