## The problem
Issue encoredev/encore#1521 (closed, 6 comments): interface A {} interface B {} interface Response { data URIs A | B } export const api_call = api( { expose: true, auth: true, method: "GET", path: "/api/creatives" }, async (): Promise[Response] => { return {} as Response }) error: ── Internal compiler error ────────────────────────────────────────────────────────────────[E0001]── An unhandled panic occurred in the Encore compiler: runtime error: invalid memory address or nil pointer dereference This is a bug in Encore and should not have occurred. Please report this issue to the Encore team either on Github at https://github.

## The fix
Fixed in Encore v1.52.5. Upgrade to that release or newer and the reported issue goes away; the maintainer confirmed the fix shipped there.

## Notes
Thread: https://github.com/encoredev/encore/issues/1521. Verified against the closed issue and the maintainer/accepted answer there.