logtail / logtail-nextjs

Better Stack Next.js client
https://betterstack.com/logs
MIT License
4 stars 3 forks source link

Next 14 Support #10

Closed alexmarmon closed 1 year ago

alexmarmon commented 1 year ago
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @logtail/next@0.1.0
npm ERR! Found: next@14.0.2
npm ERR! node_modules/next
npm ERR!   next@"^14.0.2" from the root project
npm ERR!   peer next@"*" from next-themes@0.2.1
npm ERR!   node_modules/next-themes
npm ERR!     next-themes@"^0.2.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^12.1.4 || ^13" from @logtail/next@0.1.0
npm ERR! node_modules/@logtail/next
npm ERR!   @logtail/next@"^0.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: next@13.5.6
npm ERR! node_modules/next
npm ERR!   peer next@"^12.1.4 || ^13" from @logtail/next@0.1.0
npm ERR!   node_modules/@logtail/next
npm ERR!     @logtail/next@"^0.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /Users/alexmarmon/.npm/_logs/2023-11-11T18_38_19_451Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/alexmarmon/.npm/_logs/2023-11-11T18_38_19_451Z-debug-0.log

Forcing the install works as a workaround but full support would be awesome!

curusarn commented 1 year ago

Hi @alexmarmon,

Thank you for raising this!

I'm adding it to our internal issue tracking. I'll keep you updated here on GitHub.

Thanks again for reaching out.

PetrHeinz commented 1 year ago

Hello @alexmarmon and thanks again for suggesting it 🙌

Version v0.1.1 now supports Next.js v14, you can update to it to avoid forcing the installation 🙂