Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Next.js Link not resolving to the correct folder at design time in WebStorm

I have a Next.js project using Turborepo in WebStorm where the Next.js Link components show the error Cannot resolve file 'xxxxx' even when the path exists.

I've created a sample project here on GitHub

I'm guessing there's something wrong with my setup, but I can't figure out what the issue is.

enter image description here

like image 477
Will Calderwood Avatar asked Oct 16 '25 20:10

Will Calderwood


1 Answers

It's your IDE WebStorm. I came across same issue with PyCharm, also a Jetbrains product.

Reported issue Jetbrains

like image 74
DevQandA Avatar answered Oct 19 '25 13:10

DevQandA



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!