Closed christianavi closed 2 months ago
i had the same error , until someone told me : https://github.com/leerob/leerob.io/issues/634#issuecomment-1628298724
I've found a workaround some time ago.
(On latest next version) You need to install next-auth manual commit version "next-auth": "0.0.0-manual.83c4ebd1"
, and add opentelemetry packages versions override according to package manager you are using to your package.json
:
"pnpm": {
"overrides": {
"@opentelemetry/api": "1.4.1",
"@opentelemetry/core": "1.13.0",
"@opentelemetry/exporter-trace-otlp-grpc": "0.39.1",
"@opentelemetry/resources": "1.13.0",
"@opentelemetry/sdk-trace-base": "1.13.0",
"@opentelemetry/sdk-trace-node": "1.13.0",
"@opentelemetry/semantic-conventions": "1.13.0"
}
},
After that make a clean install of packages and try again, in my projects it worked like a charm.
IF you would still have problems with that, feel free to get in touch (discord: z4nr34l)
This error should not existst now, as I see that page was migrated out from contentlayer, so had I done in my repository, and cant reproduce this issue anymore.
@leerob could you close the issue as it is outdated?
Moved to a different design: https://github.com/leerob/leerob.io/pull/727
So like I mentioned on the title, I get this error whenever I open the
guestbook/
page: Unhandled Runtime Error Error: msg.startsWith is not a functionSource
console.error
node_modules\.pnpm\next@13.4.10-canary.6_@opentelemetry+api@1.4.1_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\esm\server\app-render\preload-component.js (5:0)
This is what I see on the console:
I am out of my depth here. I tried to find
msg.startsWith
on the whole project, but there were no results of it. What could this be?