If nothing above helps, check you next.config.ts file, for me the problem was related to the incorrect images loader added.