sdk-for-web
sdk-for-web copied to clipboard
๐ Bug Report: CommonJS or AMD dependencies can cause optimization bailouts
๐ 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?
- [X] I checked and didn't find similar issue
๐ข Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
@pauli2406 Thank you for raising the issue. We will get back to you soon.
@pauli2406 Hey :-)
Are there any changes here ? I have Appwrite version SDK 13 and still the same behavior.
thanks
We've removed node-fetch and isomorphic-form-data in https://github.com/appwrite/sdk-for-web/releases/tag/15.0.0 so this shouldn't be a problem anymore. Feel free to leave a comment if otherwise.