NextJS build Fails Only In CI - Can't find module

I've spent hours trying to find the cause, any ideas? Note, it's only happening for imports from the public directory. My folder structure:
apps/
└── nextjs/
├── public/
└── src/
└── pages/
apps/
└── nextjs/
├── public/
└── src/
└── pages/
2 Replies
Mendy
MendyOP3y ago
🆙
Ajidev
Ajidev3y ago
I'm assuming you are trying to import images with the Image component from Next. Have have you tried to use the relative url convention for images. It would be something like this <Image src="/google-icons.svg" />

Did you find this page helpful?