diff --git a/code/frameworks/nextjs/src/aliases/webpack.ts b/code/frameworks/nextjs/src/aliases/webpack.ts index 879b28e0d483..a9453814b7be 100644 --- a/code/frameworks/nextjs/src/aliases/webpack.ts +++ b/code/frameworks/nextjs/src/aliases/webpack.ts @@ -14,6 +14,10 @@ export const configureAliases = (baseConfig: WebpackConfig): void => { ...(baseConfig.resolve?.alias ?? {}), '@opentelemetry/api': 'next/dist/compiled/@opentelemetry/api', next: resolvePackageDir('next'), + 'next/dist/shared/lib/app-router-context.shared-runtime': + 'next/dist/shared/lib/app-router-context.shared-runtime', + 'next/dist/shared/lib/app-router-context': + 'next/dist/shared/lib/app-router-context.shared-runtime', }, };