DEV Community

Discussion on: import files without deep nesting relative path in next.js

Collapse
 
hereisnaman profile image
Naman Kumar

That is what I do in all my projects, next or not. Relative paths causes a major problem when you move files.

Collapse
 
rajnishkatharotiya profile image
Rajnish Katharotiya

Yes, it is. I wasn’t using long time ago. And it was hard for sure to maintain. But now it’s so easy to import anywhere. And yes for sure it’s not mandatory to have nextjs we can do with any js tech.