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:
2 Replies
🆙
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" />