Immutable solution version
Openapi client genaration fails
Complete solution
A practical guide for Encore Cloud. 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.
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.
Evidence
In https://github.com/encoredev/encore/issues/1521, the reporter asked: 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 verified answer: 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. Source thread: https://github.com/encoredev/encore/issues/1521
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_x_YBNFGFyznYpXBd1hL13A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Openapi client genaration fails <span>— Vectle</span></a>