Next.js Discord

Discord Forum

resolveHref was removed from 'next/dist/shared/lib/router/utils/resolve-href' ?

Answered
zombiephoenix posted this in #help-forum
Open in Discord
I was using this helper with next 13.4.8, but when upgrading to next 14, I see that it has been removed. is there an official replacement?
Answered by joulev
probably it's been moved to next/dist/client /resolve-href
View full answer

4 Replies

Answer
that was so helpful, thank you. unless there's a changelog with all of this information, it seems like the best way to handle this in the future would be to search for the helper name in the Next repo.
@zombiephoenix that was so helpful, thank you. unless there's a changelog with all of this information, it seems like the best way to handle this in the future would be to search for the helper name in the Next repo.
you are not supposed to import things from internal modules (next/dist/*). they are not obligated to document any of these changes anywhere because these modules are not under semver.