Updating to next 15 safely without manual intervention
Unanswered
Belgian Hare posted this in #help-forum
Belgian HareOP
Hi everyone, I'm on 14.1.0 and would like to update to latest version, i tried codemod but it didnt work, i got so many errors
Hot reloading feels so slow on next 14 :/
Hot reloading feels so slow on next 14 :/
40 Replies
@Belgian Hare Hi everyone, I'm on 14.1.0 and would like to update to latest version, i tried codemod but it didnt work, i got so many errors
Hot reloading feels so slow on next 14 :/
the hot reloading seems completely broken. Make sure you are following the rules of hot reloading. Add
--turbo
flag, it will improve your dev experienceand what types of errors are you getting using codemod
Belgian HareOP
i dont remember, i'll try again
what do i select?
all i want is new next version and fix the outdated code automatically
@Belgian Hare Click to see attachment
just select the 1st and 2nd one
uncheck the 3rd one unless you are using that one too
Belgian HareOP
i have that pkg installed
@Yi Lon Ma just select the 1st and 2nd one
Belgian HareOP
@Belgian Hare Click to see attachment
looks like its done?
yea the new async api
Belgian HareOP
the codemod either skipped this one 😨
make the func async and await it
const jwt = async() => (await cookies()).get("jwt")?.value;
@Yi Lon Ma make the func async and await it
Belgian HareOP
yes
lgtm
do you get any errors building or running it?
@Yi Lon Ma do you get any errors building or running it?
Belgian HareOP
that error is gone
now this error ðŸ˜
use next/dynamic api probably
@Yi Lon Ma use next/dynamic api probably
Belgian HareOP
i did last year, it got me many issues
If you're patient to read :
https://nextjs-forum.com/post/1305551184748085248
If you're patient to read :
https://nextjs-forum.com/post/1305551184748085248
welp
Belgian HareOP
lemme try
Belgian HareOP
@Yi Lon Ma this error ive faced before
idk whats causing it 😔
@Belgian Hare idk whats causing it 😔
nuke lockfile, node modules, reinstall and try again
do you have otel installed?
or is it sentry
@Yi Lon Ma or is it sentry
Belgian HareOP
yes i have this 😨