axiomhq/next-axiom

Next 14 Support

francofantini opened this issue · 4 comments

Hello Axiom Team,

I hope this message finds you well. I am currently using your library in one of my projects and it's been a great experience so far.

I am planning to upgrade my project to Next.js 14. However, before proceeding with the upgrade, I wanted to confirm whether Axiom has support for Next.js 14. Could you kindly let me know if it's compatible?

In case it's not currently compatible, do you have any plans to support this version in the near future?

Any information you can provide would be greatly appreciated.

It seems to me like the code supports it but the peerDeps still require Next 13 so you'll get a dependency conflict in npm install (which you can bypass with a flag if you want).

I'm also not sure if the latest version of next-axiom supports the pages router so you might be forced to use v0.18.0.

(Note: I'm not a member of the Axiom team, just a user. So take this with a grain of salt.)

hey @francofantini, if you are using app router then latest version of next-axiom should work fine, we just tested it. If you are on page router and uses next-axiom v0.x then you would have to wait for v0.18.1 that will fix the peerDeps, the PR is currently being reviewed and tested.

v0.18.1 is ready with support for Next 14 with the Pages router :)

will close this issue, feel free to open if there is still related issues.