Duolith docs

Errors E0200 to E0299

E0202 Effect not built for native

Message effect is not built for iOS and Android yet

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A native build ships the platform effects' shared half with native platforms bound in, which reach Swift and Kotlin through the engine. Only the effects marked native in spec/effects/effects.yaml have those platforms so far. The web version of an effect would not work on a phone (no browser APIs, no redirects), so the build stops instead of shipping it.

How to fix it

Build the app for the web, or leave the effect out of the app's native version. The effects the native targets have are listed in the error's help.

In a terminal

duolith explain E0202

Mentioned in