You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that someone also raised this issue on discord, and they all happened to use Nuxt (Nitro) to build the backend. I can't confirm which side the problem is.
It would be great if this could be fixed! Any help is greatly appreciated!
Hi, I think the problem comes from the fact that the module is based on CommonJS instead of ESM, so Nuxt (Nitro) and other projects with the "type": "module" attribute cannot be loaded smoothly.
A simple fix is:
importPlunkfrom"@plunk/node";constkey="..."constplunk=newPlunk.default(key);// but typescript will prompt an error
Reacted by Yinka Adedire, nthskyradiated, Alexey Elizarov, Jason, Jeremy Mees, Constant Gillet, Georgi AI, Franck Kerbiriou and Christoph Kolb
Reacted by Thomas Sanlis, Quentin, Alexey Elizarov, Jason, Georgi AI and Thibaut Castanié
+1, still an issue for me when trying to bundle @plunk/node with bun. Works in the dev server, crashes when running the bundle.
Works with the fix above however.
This library is no longer maintained as it is impossible for me as a solo-founder to maintain all integration. It was a basic API wrapper in the first place without any functionality, just call the API.
Activity
awdr74100 commentedon Oct 23, 2023
Hi, I think the problem comes from the fact that the module is based on CommonJS instead of ESM, so Nuxt (Nitro) and other projects with the
"type": "module"attribute cannot be loaded smoothly.A simple fix is:
driaug commentedon Nov 20, 2023
Hey there! Sorry for missing this issue!
We are in the process of rewriting some of our open-source components so this issue will be resolved quite soon!
jasongitmail commentedon Aug 12, 2024
This should probably be highlighted in the README. Spent time troubleshooting it too. Thanks for the fix @awdr74100 Works well with that
ash-vd commentedon Jun 19, 2025
This is still an issue I spent more time on then I'd like to admit 😅
chris-ldgk commentedon Aug 4, 2025
+1, still an issue for me when trying to bundle @plunk/node with bun. Works in the dev server, crashes when running the bundle.
Works with the fix above however.
Micnubinub commentedon Feb 6, 2026
Any update? I'm still getting the issue
driaug commentedon Feb 6, 2026
This library is no longer maintained as it is impossible for me as a solo-founder to maintain all integration. It was a basic API wrapper in the first place without any functionality, just call the API.