Duolith docs

Errors while checking a page

E0118 Export from a component's script

Message A component's script cannot export

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

Mentioned in