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
MendyOP2y ago
🆙
Alan Ibarra-2310
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" />
Want results from more Discord servers?
Add your server