-
Notifications
You must be signed in to change notification settings - Fork 9
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
[BUG] Circular depedency when using vite and frontegg-react #1022
Comments
Is there any additional information I can provide to help debug this? |
We're actively working on the issue you've reported, but as of now, we haven't been able to replicate it ourselves. It would be immensely helpful if you could share a sample project that demonstrates the problem you're encountering. If providing an example project isn't feasible, could you please share some additional information with us? Specifically, we'd appreciate it if you could provide details about your Node.js version, your tsconfig.ts file, and any configuration you added. |
I will try to gather an example project and get back to you. In general, judging by the compiled files - there definitely is a dependency between I'm not sure why it is not causing problems in the other envs, maybe Vite is doing some clever tree-shaking with the options that we have. If I don't build this with Vite and just use HMR to introduce the code dependent on the |
Here is the example project repo: https://github.com/drdaemos/frontegg-circular-issue |
@drdaemos awesome! thanks. I realized that your Vite config file is different. When I use yours, I can reproduce it. |
Hey @drdaemos, it seems that your build is failing due to an internal configuration you have added to fail the build with every rollup warning:
We will release a fixed version probably by the end of the week or early next week. |
Any update on this? |
By the way, we're now seeing
|
Describe the bug
Running
vite build
fails on a npm package that depends on@frontegg/frontegg-react
v5.0.50 with error:To Reproduce
Have a JavaScript npm package similar to the following template:
Have the following code in your package source files:
Expected behavior
I expect
vite build
to run without issues.Additional context
Here is the build error log:
The text was updated successfully, but these errors were encountered: