[BUG] Missing dependency warning @frontegg/rest-api
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
- Create a project with the
@frontegg/reactdependency - Fail or log build warnings
- 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.
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 😤