Open Joezo opened 6 months ago
Still an issue as of 14.2.11
. This is preventing us from upgrading.
cc @ijjk curious if this is on your radar?
Also running into this issue on latest 14.
I was able to fix the issue by adjusting the configuration and add the following experimental
entry:
experimental: {
serverComponentsExternalPackages: ['@vercel/otel'],
}
Tested with next.js
, 14.2.13
@BowlingX this seems to work for us, thanks so much!
Link to the code that reproduces this issue
https://github.com/Joezo/nextjs-instrumentation-babel-bug
To Reproduce
npx create-next-app -e reproduction-template-pages
)npm install @vercel/otel
.babelrc
file containing justnext/babel
presetinstrumentationHook
experiment in next.configinstrumentation.ts
file that containsnpm run dev
Current vs. Expected behavior
Current behaviour:
Behaviour on next 14.1
Provide environment information
Which area(s) are affected? (Select all that apply)
Instrumentation, Module Resolution, Runtime, Webpack
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
It looks like
14.1.1-canary.78
introduced this. It works fine on14.1.1-canary.77
. I suspect it's probably this change given the changes that were part of that release. https://github.com/vercel/next.js/pull/62622