-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
upgrading to v9 caused a ERR_REQUIRE_CYCLE_MODULE #15363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @tcurdt, thank you for writing in. I tried to reproduce this with a fresh sveltekit starter project with your config (although I noticed Could you please provide a reproduction repo? |
I removed a comment and by mistake also removed the
Hm. I'll try. Could you share the project files of your starter project? Just so we are using off the same project? |
@tcurdt sure, here's my repo: https://github.com/andreiborza/15363-sveltekit |
I am also running into this issue. I tried cloning your repo @andreiborza and get the same problem: Node version v22.13.1 if it helps |
So on a hunch I moved the |
I can actually reproduce it with your repo, @andreiborza No changes.
|
I still need to try that on our main repo - but it fixes the test repo. |
This error appears with Node 22.12.0 and onwards, and most probably is related to "require ESM". We'll look into it. In the meantime, to unblock yourselves, you can use Node 22.11.0 or below or version 8 of the SDK. UPDATE: This is likely related to #14886 where we introduced a possible require cycle by importing the vite config within our plugin. I will attempt to confirm this and keep you all posted once we know more. |
I could confirm that our import of I tested this a bit and for now, it seems like I can use a dynamic |
Thanks for the quick help. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/sveltekit
SDK Version
9.0.0
Framework Version
Sveltekit 2.17.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
The upgrade to v9 broke our build. We had to revert backt o v8.
Expected Result
It to just build like it did with v8.
Actual Result
The text was updated successfully, but these errors were encountered: