Duolith docs

Errors while checking a page

E0147 Export from a page's script

Message A page's script cannot export

Why

The router runs a page's script once for each screen of it that it shows, so there is no single value to export.

How to fix it

Share state between screens with state(initial, { shared: "name" }).

In a terminal

duolith explain E0147

Mentioned in