I’m building a website in NextJS and it was working well until today when it started saying that it’s unable to resolve multiple elements:
Some things that I tried that didnt work:
- Get rid of the type alias and use the normal path name for each element
- run
npm install
in the/app
directory as suggested under another post - delete the
.next
directory and runnpm run build
Here’s what my folder structure looks like and the import alias:
[2
1