Next.js Discord

Discord Forum

imports are undefined

Unanswered
Bank Swallow posted this in #help-forum
Open in Discord
Bank SwallowOP
I have an issue with the package d3-dag in combination with RSCs. When building my app, the imported functions are all undefined.

This error occurs when calling them:
TypeError: (0 , d3_dag_cjs_min.graphStratify) is not a function

It works fine in dev mode with --turbo, but I'm blocked by the build failing. According to arethetypeswrong, the package's exports are fine. Does anyone know what could cause this?

I already tried transpilePackages without success.

0 Replies