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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: CommonJS or AMD dependencies can cause optimization bailouts #34

Open
2 tasks done
pauli2406 opened this issue Sep 6, 2022 · 2 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@pauli2406
Copy link

馃憻 Reproduction steps

Add the Appwrite web SDK to an angular project.
Run the build command to compile.

npx nx run oncampus-cms:build --parallel

Should also occur when execute it with
ng serve

馃憤 Expected behavior

No warnings regarding "CommonJS or AMD dependencies can cause optimization bailouts" should appear while compiling the project

馃憥 Actual Behavior

Receiving two warnings with dependencies that are not optimized:

Warning: /Users/marcelpochert/Programming/Work/on-campus/node_modules/appwrite/dist/esm/sdk.js depends on 'cross-fetch'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /Users/marcelpochert/Programming/Work/on-campus/node_modules/appwrite/dist/esm/sdk.js depends on 'isomorphic-form-data'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

馃幉 Appwrite version

Different version (specify in environment)

馃捇 Operating system

MacOS

馃П Your Environment

Using version "appwrite": "^9.0.1"
Angular Version 14.2.0

Withing an nx mono repo

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@pauli2406 pauli2406 added the bug Something isn't working label Sep 6, 2022
@lohanidamodar
Copy link
Member

@pauli2406 Thank you for raising the issue. We will get back to you soon.

@aallnneess
Copy link

@pauli2406 Hey :-)

Are there any changes here ? I have Appwrite version SDK 13 and still the same behavior.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants