Closed sachinsingh119 closed 1 year ago
@sachinsingh119, apologies for the delayed response on this issue. After reviewing your dependencies, it looks like you're on a very old version of Amplify (v1.3.3). Could you see if upgrading your Amplify package results in the same errors?
I was able to reproduce similar build errors to what you are seeing when I rolled back my @aws-amplify/ui-angular
and aws-amplify
packages to older versions, but was able to resolve the errors and build successfully with current versions. We may need to work around some different errors or update other things in your code depending on how you configured Amplify imports back when it was on v1.3.3, but comment back on the results if you're still experiencing this.
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue.
Thank you!
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Analytics
Amplify Categories
No response
Environment information
Describe the bug
We have integrated aws-amplify library in our project which is having angular CLI v1.6.6 and Typescript v2.6.2. The build is failing with the command "ng build --prod" and "ng serve". Please find the error screenshot attached.
FYI "ng -v" output:
Angular CLI: 1.6.6 Node: 14.15.4 OS: darwin x64 Angular: 5.2.0 ... animations, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router
@angular/cdk: 5.2.5 @angular/cli: 1.6.6 @angular/material: 5.2.5 @angular-devkit/build-optimizer: 0.0.42 @angular-devkit/core: 0.0.29 @angular-devkit/schematics: 0.0.52 @ngtools/json-schema: 1.1.0 @schematics/angular: 0.1.17 typescript: 2.6.2 webpack-cli: 3.3.5 webpack-dev-server: 2.9.5 webpack-merge: 4.1.1 webpack-notifier: 1.5.1 webpack-visualizer-plugin: 0.1.11
Expected behavior
Successful build with Angular CLI 1.6.6 andTypescript 2.6.2
Reproduction steps
ng build --prod
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response