Skip to content

13: fix: check in the image type declarations so the typecheck stands alone - #38

Merged
juliantellez merged 2 commits into
mainfrom
13-fix-image-type-declarations
Aug 22, 2026
Merged

juliantellez merged 2 commits into
mainfrom
13-fix-image-type-declarations

Conversation

@juliantellez

Copy link
Copy Markdown
Contributor

What. Checks in the type references Next normally generates, so tsc --noEmit no longer depends
on a file that only exists after a build.

Why. main went red on Cannot find module '@/images/whiteboard.jpg'. The types for a static
image import come from next-env.d.ts, which Next generates on a build and gitignores. My local run
passed because an earlier build had left that file behind. A fresh checkout, which is what the
pipeline has, does not have it.

I removed the generated file locally and reproduced the failure, added the references, and confirmed
it passes without it. Then I deleted the new file and watched it fail again, so the fix is what is
doing the work rather than something else.

How it got to main. I merged #37 while its check was still running. My wait loop exited on a
state that was not literally PENDING, and I did not check the result before merging. That is on
me, and the deploy stopped at the type step, so nothing broken reached production.

Part of #2.

@juliantellez juliantellez self-assigned this Aug 22, 2026
@juliantellez
juliantellez merged commit 22090aa into main Aug 22, 2026
1 check passed
@juliantellez
juliantellez deleted the 13-fix-image-type-declarations branch August 22, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant