I've encountered an issue while working on my website in NextJS. It suddenly started showing an error message about being unable to resolve multiple elements: https://i.sstatic.net/fQf1rf6t.png Here are a few things that I attempted, but unfortunately did not work:
- Removing the type alias and using the normal path name for each element
- Executing
npm install
in the/app
directory as mentioned in another post - Deleting the
.next
directory and runningnpm run build
This is how my folder structure looks like along with the import alias:
[2 https://i.sstatic.net/cyLlBegY.png https://i.sstatic.net/e8fLjkBv.png