Open phikes opened 4 weeks ago
I actually noticed another error: Honeybadger (the react package specifically) imports Component
from react. I receive an error now during build stating that react
doesn't export Component
. When I run the compiled application I get an error because of the missing Component
. I have no clue if this is a nextjs bug. I know they do some precompiling of react and other libraries and make it part of the bundle. It seems this issue is related: https://github.com/vercel/next.js/issues/60890. Happens with the same repro above.
Hey @phikes, thanks for reporting this!
I actually noticed another error: Honeybadger (the react package specifically) imports Component from react. I receive an error now during build stating that react doesn't export Component. When I run the compiled application I get an error because of the missing Component. I have no clue if this is a nextjs bug. I know they do some precompiling of react and other libraries and make it part of the bundle. It seems this issue is related: https://github.com/vercel/next.js/issues/60890. Happens with the same repro above.
I've seen your PR (much appreciated!), I am planning to take another look my self with nextjs v15 as well.
What are the steps to reproduce this issue?
What happens?
Build fails with:
What were you expecting to happen?
Build doesn't fail
Any logs, error output, etc?
See above
Any other comments?
This is because of an incorrect version check here. This line checks if the major version is greater than 14 and the minor version is greater than 3 (regardless of the major version). Instead the check should read something like:
(+nextJsVersion[0] === 14 && +nextJsVersion[1] >= 3) || +nextJsVersion[0] > 14
What versions are you using?
Operating System: … Package Name: … Package Version: … Browser Version: …