Skip to content
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

depends on '@openid/appauth/built/xhr'. CommonJS or AMD dependencies can cause optimization bailouts. #213

Open
minomikula opened this issue Jul 5, 2022 · 0 comments

Comments

@minomikula
Copy link

Expected Behavior

[REQUIRED] Describe expected behavior

No compilation warning in Angular >10

Describe the problem

[REQUIRED] Actual Behavior

In related issue #181 it was suggested:

The @openid/appauth import is an umbrella import for convenience. You can always just import the individual modules.

So I tried to do
import { Requestor } from '@openid/appauth/built/xhr';

but still on compilation there is warning: .../auth.module.ts depends on '@openid/appauth/built/xhr'. CommonJS or AMD dependencies can cause optimization bailouts.

[REQUIRED] Steps to reproduce the behavior

[REQUIRED] Environment

  • AppAuth-JS version: ____ @openid/appauth": "^1.3.1" ____________
  • AppAuth-JS Environment (Node, Browser (UserAgent), ...): ____ Angular 13.3.0 / Ionic 6.19.0___________________
  • Source code snippts (inline or JSBin)
minomikula added a commit to smartcommunitylab/dslab.playgo-mobile that referenced this issue Jul 5, 2022
Could not be resolved using "proper" module imports.

See openid/AppAuth-JS#213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant