frontegg-react icon indicating copy to clipboard operation
frontegg-react copied to clipboard

[BUG] Missing dependency warning @frontegg/rest-api

Open arthuracs opened this issue 2 years ago • 1 comments

Describe the bug When trying to build a project that includes @frontegg/react we're seeing a missing dependency build warning:

Error: "@frontegg/rest-api" is imported by "../../../node_modules/@frontegg/js/HostedLogin/index.js", but could not be resolved – treating it as an external dependency.

To Reproduce

  1. Create a project with the @frontegg/react dependency
  2. Fail or log build warnings
  3. A warning appears for a missing dependency for @frontegg/rest-api

Expected behavior No missing dependency warnings.

Additional context It looks like there is a reference to @frontegg/rest-api in the yarn.lock file in @frontegg/react but it is not referenced in the package.json.

arthuracs avatar Feb 26 '24 11:02 arthuracs

I am having a similar issue. we just switched from npm to yarn with PnP, and I get similar errors for : @frontegg/rest-api/ @frontegg/redux-store / @frontegg/types

Module not found: Error: Can't resolve '@frontegg/redux-store' in '.yarn/virtual/@frontegg-react-virtual-ff7c6e9bdb/9/.yarn/berry/cache/@frontegg-react-npm-7.0.6-e153c3b513-10c0.zip/node_modules/@frontegg/react'

Module not found: Error: Can't resolve '@frontegg/rest-api' in '.yarn/virtual/@frontegg-react-virtual-ff7c6e9bdb/9/.yarn/berry/cache/@frontegg-react-npm-7.0.6-e153c3b513-10c0.zip/node_modules/@frontegg/react'

This is the only package causing me this issue 😤

kadosh1000 avatar Mar 02 '25 13:03 kadosh1000