E0118 Export from a component's script
Why
Each placed copy of a component runs its own script, so there is no single value to export.
How to fix it
Share code from a .ts file instead.
In a terminal
duolith explain E0118