Next.js Discord

Discord Forum

next.js imports a module twice on the server

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
hi everyone, next.js is importing a module twice on the server, which causes all my service configuration in instrumentation hook to break.

it is currently on the issue: https://github.com/vercel/next.js/issues/55885

however, i don't think this would be fixed anytime soon, is anyone having this problem and come up with a workaround that is not hard-coding configuration into the service implementation?

0 Replies