resolveHref was removed from 'next/dist/shared/lib/router/utils/resolve-href' ?
Answered
zombiephoenix posted this in #help-forum
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?
4 Replies
@zombiephoenix 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?
probably it's been moved to
next/dist/client
/resolve-hrefAnswer
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.