Giter Club home page Giter Club logo

Comments (8)

doregg avatar doregg commented on June 16, 2024 1

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:

  rollupOptions: {
    onwarn(warning) {
       throw Object.assign(new Error(), warning)
    },
  },

We will release a fixed version probably by the end of the week or early next week.

from frontegg-react.

drdaemos avatar drdaemos commented on June 16, 2024

Is there any additional information I can provide to help debug this?

from frontegg-react.

doregg avatar doregg commented on June 16, 2024

@drdaemos,

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.

from frontegg-react.

drdaemos avatar drdaemos commented on June 16, 2024

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 @frontegg/redux-store/auth/LoginState/saga.js and @frontegg/redux-store/auth/SignUp/saga.js: they both rely on at least one exported function from each other.

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 frontegg-react, it actually works fine.

from frontegg-react.

drdaemos avatar drdaemos commented on June 16, 2024

Here is the example project repo: https://github.com/drdaemos/frontegg-circular-issue

from frontegg-react.

doregg avatar doregg commented on June 16, 2024

@drdaemos awesome! thanks. I realized that your Vite config file is different. When I use yours, I can reproduce it.
We are working on a fix.

from frontegg-react.

artursvonda avatar artursvonda commented on June 16, 2024

Any update on this?

from frontegg-react.

artursvonda avatar artursvonda commented on June 16, 2024

By the way, we're now seeing

Circular dependency: ../../../node_modules/@frontegg/redux-store/auth/index.js -> ../../../node_modules/@frontegg/redux-store/auth/saga.js -> ../../../node_modules/@frontegg/redux-store/auth/SSOState/saga.js -> ../../../node_modules/@frontegg/redux-store/auth/LoginState/saga.js -> ../../../node_modules/@frontegg/redux-store/toolkit/index.js -> ../../../node_modules/@frontegg/redux-store/auth/index.js

from frontegg-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.