next-images breaking all the absolute paths in my next.js project

As the user @juliomalves mentioned above, the answer is on this link from the Next.js official documentation.

Basically, the issue was fixed in 2 steps:

  1. Adding a jsconfig.json file (if you're using Typescript, you should use tsconfig.json instead).

  2. changing all the absolute paths from /components/Something to components/Something (in other words, removing the first forward slash).