Closed damogallagher closed 3 years ago
Issue was resolved for me by following the instructions here
Thanks for reporting the issue, @damogallagher. This will be fixed going forward once we merge https://github.com/aws-amplify/amplify-js/pull/8369
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Authentication, Analytics, REST API, Storage, Interactions, PubSub
Amplify Categories
No response
Environment information
Describe the bug
When I start my angualr project after upgrading to Angular 12 - I get the following error `./node_modules/aws-amplify-angular/ivy_ngcc__/dist/src/components/interactions/chatbot/chatbot.component.core.js:118:0-35 - Error: Module not found: Error: Can't resolve 'util' in '/Users/damiengallagher/Development/sourceControl/c-research/grievance-platform/frontend/node_modules/aws-amplify-angular/ivy_ngcc__/dist/src/components/interactions/chatbot'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
Expected behavior
Ther application should start up as expected
Reproduction steps
Code Snippet
Log output
aws-exports.js
`import { environment } from 'environments/environment';
const url = require('url');
const projectName = 'my-datalake';
const awsmobile = { aws_app_analytics: 'disable', aws_cognito_identity_pool_id: environment.cognitoIdentityPoolId, aws_cognito_region: environment.awsRegion, aws_content_delivery: 'enable', aws_content_delivery_bucket: environment.s3HostingBucket, aws_content_delivery_bucket_region: environment.awsRegion, aws_content_delivery_cloudfront: 'enable', aws_content_delivery_cloudfront_domain: url.parse(environment.cloudfrontDomainName).hostname || environment.cloudfrontDomainName, aws_mandatory_sign_in: 'enable', aws_project_name: projectName, aws_project_region: environment.awsRegion, aws_sign_in_enabled: 'enable', aws_user_files: 'enable', aws_user_files_s3_bucket: environment.s3UserFilesBucket, aws_user_files_s3_bucket_region: environment.awsRegion, aws_user_pools: 'enable', aws_user_pools_id: environment.cognitoUserPoolId, aws_user_pools_web_client_id: environment.cognitoUserPoolClientId, };
export default awsmobile; `
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