I have a strange problem with NextJS on build
When I try to build my project I have this message Module not found: Can't resolve './fileSystem'
It appears when a component try to include an other in the SAME folder
I don’t have this problem when the imported component is in an other folder
(https://i.sstatic.net/jqBX8IFd.jpg)
I tried to import it with the dot notation ./
(https://i.sstatic.net/JpsIgVf2.jpg)
and with the alias way @/
(https://i.sstatic.net/jjcW4NFd.jpg)
for the same result ????
AND MORE IMPORTANT !
I only have this problem when I try to build my project on the Gitlab CI
When I run npm run build
on my computer (Windows) there sis no problem
If anyone has already had this problem and have the solution… you can win a cake ????