Typecheck works locally but fail during CI\CD on new T3 project
Hey community, please help with following
I've created a new T3 project with 1 page and have a problem importing images.
My repo is here (difference from template: 4 pictures, images.d.ts, ci\cd config file)
https://github.com/Rooman/t3-image-test
Locally pnpm typecheck works file. But in CI\CD i got:
Error: src/app/page.tsx(1,18): error TS2307: Cannot find module '~/assets/1.jpg' or its corresponding type declarations.
Another problem that my Linter is showing me, that .svg is imported as any. But in my type file I've provided the following configuration:
declare module ".svg" {
const content: StaticImageData;
export default content;
}
Both Cursor and ChatGPT are saying that all my configurations are correct, but it seems not
pnpm dev works fine
GitHub
GitHub - Rooman/t3-image-test
Contribute to Rooman/t3-image-test development by creating an account on GitHub.




0 Replies