Next.js Discord

Discord Forum

Next.js 3rd Party JS loader

Unanswered
Jumbo flying squid posted this in #help-forum
Open in Discord
Jumbo flying squidOP
Hello, regarding new features abiut 3rd party JS loader in next.js, is it only available starting on Next.js v14 and beyond, because the docs page didn’t mention specifically what version of Next.js it can be used from.

Also, is there any plans on backward compatibility to previous version?


Thanks in advance!

14 Replies

o.O i haven't seen this before
i found a pr that made some of them... so id thing v13 might work: https://github.com/vercel/next.js/pull/52909 (but i has no idea)
wait looking at the releases, the only stable version is v14: https://www.npmjs.com/package/@next/third-parties?activeTab=versions
Jumbo flying squidOP
I thought so, since it’s also on canary branch of nextjs

But I do really hope that they’ll make this into separate packages do that previous version can make use of it
it is a separate package... so you could try the v13 canary version with v13, but idk
Jumbo flying squidOP
TBH I’d be glad if it supports till v10 hahaha
because I had projects that used v10 and v12
you really should update them
Jumbo flying squidOP
It would be such a pain to migrate since it’s codebase became too large
Might need to rewrite as well
@Jumbo flying squid Might need to rewrite as well
If you're referring to pages directory, this is supported. You can still upgrade to next 14 to get updates for the pages directory.
This is the pages version of the link you shared: https://nextjs.org/docs/pages/building-your-application/optimizing/third-party-libraries