Thanks Dmytro, a few things though Iām struggling withā¦
I dont actually see a node_modules/netlify-cli when I explore in VS code under node_modules. Am I missing something?
When you say run the script, where should I run that? Bit new to this!..?
Do I assume correctly that you were also having the same issue on localhost, not on production? My issue is limited to localhost only, production works fine for me.
Do I assume correctly such a patch would need to be manually added each time I update the related packages?
@hrishikesh does this clarify the issue from your perspective?
@hrishikesh Iāve created repo with reproducable issue (GitHub - dmytrobaida/netlify-issue-demo). Because example you sent does not cover case when we have monorepo with nextjs and functions. Also added an image with this error. Problem is that netlify cli think that last request is request to function instead next js and it returns function not found error. Hope it will help you to reproduce this issue
I ended up giving up on this and moved away to Vercel as I couldnt take the pain any more with these port issues on netlify dev.
I think for such a big framework like Next.js (and given that I started using Netlify on all the content I read on how it plays nicely with Next.js and you would assume itās biggest login system nextauth) itās unusual to get responses from support, for a paid product to the tune of:
Iām not a fan of Next.js so not much help (not helpful)
Youāre problem doesnt exist, because I wasnt able to replicate it.
Aside from this issue itself being annoying, the unhelpful support here put me off entirely.
Took me about 2 hours to migrate to Vercel and it all works there with their serverless functions flawlessly.