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'. CommonJS or AMD dependencies can cause optimization bailouts #181

Closed
celvin opened this issue May 6, 2021 · 1 comment

Comments

@celvin
Copy link

celvin commented May 6, 2021

Expected Behavior

[REQUIRED] Describe expected behavior

When compiling in Angular 10, I'm getting the warning: '@openid/appauth'. CommonJS or AMD dependencies can cause optimization bailouts

Describe the problem

When compiling

[REQUIRED] Actual Behavior

Warning: /usr/src/app/src/app/app.module.ts depends on '@openid/appauth'. CommonJS or AMD dependencies can cause optimization bailouts.
ck-servicemesh-webapp | For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

[REQUIRED] Steps to reproduce the behavior

npm install

[REQUIRED] Environment

  • AppAuth-JS version: ^1.3.1
  • AppAuth-JS Environment (Node, Browser (UserAgent), ...): node
  • Source code snippts (inline or JSBin)
@tikurahul
Copy link
Collaborator

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

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

2 participants