You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
here are the errors I get after running the ng serve
root@DESKTOP-QGFU0QB:/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular# ng serve
? Port 4200 is already in use.
Would you like to use a different port? Yes
⠋ Generating browser application bundles...****************************************************************************************
This is a simple server for use in testing or debugging Angular applications locally.
It hasn't been reviewed for security issues.
DON'T USE IT FOR PRODUCTION!
Warning: Entry point 'aws-amplify-angular' contains deep imports into 'C:/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/aws-sdk/clients/route53domains'. This is probably not a problem, but may cause the compilation of entry points to be out of order.
✔ Browser application bundle generation complete.
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSKinesisProvider.js depends on 'aws-sdk/clients/kinesis'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSPinpointProvider.js depends on 'aws-sdk/clients/mobileanalytics'. CommonJS or AMD dependencies can cause
optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSPinpointProvider.js depends on 'aws-sdk/clients/pinpoint'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/analytics/lib-esm/Providers/AmazonPersonalizeProvider.js depends on 'aws-sdk/clients/personalizeevents'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/interactions/lib-esm/Providers/AWSLexProvider.js depends on 'aws-sdk/clients/lexruntime'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js depends on '@aws-sdk/eventstream-marshaller'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js depends on '@aws-sdk/util-utf8-node'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js depends on 'aws-sdk/clients/polly'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js depends on 'aws-sdk/clients/translate'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js depends on 'aws-sdk/clients/rekognition'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js depends on 'aws-sdk/clients/textract'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.js depends on 'aws-sdk'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/storage/lib-esm/Providers/AWSS3Provider.js depends on 'aws-sdk/clients/s3'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js depends on 'crypto-js/hmac-sha256'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js depends on 'crypto-js/lib-typedarrays'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/apollo-client/index.js depends on 'graphql/language/printer'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/graphql-tag/lib/index.js depends on 'graphql'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src/app/chat-app/appsync.service.ts depends on 'aws-appsync'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src/app/chat-app/appsync.service.ts depends on 'aws-appsync/lib/link/auth-link'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src/app/chat-app/chat-helper.ts depends on 'immutability-helper'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src/app/chat-app/chat-user-list/chat-user-list.component.ts depends on 'uuid'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: Unable to locate stylesheet: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/https:/code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css
Warning: Unable to locate stylesheet: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/https:/maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:34:0-49 - Error: Module not found: Error: Can't resolve './graphql' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'graphql.mjs'?
BREAKING CHANGE: The request './graphql' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:36:0-47:50 - Error: Module not found: Error: Can't resolve './type' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './type' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:49:0-53:205 - Error: Module not found: Error: Can't resolve './language' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './language' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:55:0-101 - Error: Module not found: Error: Can't resolve './execution' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './execution' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:56:0-68 - Error: Module not found: Error: Can't resolve './subscription' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './subscription' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:58:0-60:675 - Error: Module not found: Error: Can't resolve './validation' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './validation' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:62:0-64 - Error: Module not found: Error: Can't resolve './error' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './error' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:64:0-98:42 - Error: Module not found: Error: Can't resolve './utilities' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './utilities' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:9:0-41 - Error: Module not found: Error: Can't resolve '../jsutils/inspect' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'inspect.mjs'?
BREAKING CHANGE: The request '../jsutils/inspect' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:10:0-34 - Error: Module not found: Error: Can't
resolve './source' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'source.mjs'?
BREAKING CHANGE: The request './source' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:11:0-39 - Error: Module not found: Error: Can't
resolve '../error' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request '../error' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:12:0-63 - Error: Module not found: Error: Can't
resolve './lexer' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'lexer.mjs'?
BREAKING CHANGE: The request './lexer' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:13:0-31 - Error: Module not found: Error: Can't
resolve './kinds' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'kinds.mjs'?
BREAKING CHANGE: The request './kinds' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:14:0-56 - Error: Module not found: Error: Can't
resolve './directiveLocation' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'directiveLocation.mjs'?
BREAKING CHANGE: The request './directiveLocation' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/printer.mjs:7:0-34 - Error: Module not found: Error: Can't
resolve './visitor' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'visitor.mjs'?
BREAKING CHANGE: The request './visitor' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/lib-esm/API.js:612:40-52 - Error: export 'GraphQLError' (imported as 'GraphQLError') was
not found in 'graphql' (module has no exports)
./node_modules/@aws-amplify/api/lib-esm/API.js:629:41-53 - Error: export 'GraphQLError' (imported as 'GraphQLError') was
not found in 'graphql' (module has no exports)
./node_modules/@aws-amplify/api/lib-esm/API.js:677:69-81 - Error: export 'GraphQLError' (imported as 'GraphQLError') was
not found in 'graphql' (module has no exports)
./node_modules/aws-amplify-angular/ivy_ngcc/dist/src/components/interactions/chatbot/chatbot.component.core.js:184:0-35 - Error: Module not found: Error: Can't resolve 'util' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/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:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
./node_modules/aws-appsync/node_modules/aws-sdk/lib/event_listeners.js:560:21-44 - Error: Module not found: Error: Can't
resolve 'util' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/aws-appsync/node_modules/aws-sdk/lib'
Did you mean './util'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src, node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
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:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
./node_modules/aws-sdk/lib/event_listeners.js:560:21-44 - Error: Module not found: Error: Can't resolve 'util' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/aws-sdk/lib'
Did you mean './util'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src, node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
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:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
Error: src/app/chat-app/chat-app.module.ts:43:21 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).
here are the errors I get after running the ng serve
root@DESKTOP-QGFU0QB:/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular# ng serve
? Port 4200 is already in use.
Would you like to use a different port? Yes
⠋ Generating browser application bundles...****************************************************************************************
This is a simple server for use in testing or debugging Angular applications locally.
It hasn't been reviewed for security issues.
DON'T USE IT FOR PRODUCTION!
Warning: Entry point 'aws-amplify-angular' contains deep imports into 'C:/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/aws-sdk/clients/route53domains'. This is probably not a problem, but may cause the compilation of entry points to be out of order.
✔ Browser application bundle generation complete.
Initial Chunk Files | Names | Size
main.js | main | 4.37 MB
polyfills.js | polyfills | 140.96 kB
runtime.js | runtime | 1.66 kB
styles.css | styles | 117 bytes
Build at: 2021-05-18T04:36:34.534Z - Hash: d9f2574b7fecdb48c769 - Time: 144256ms
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSKinesisProvider.js depends on 'aws-sdk/clients/kinesis'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSPinpointProvider.js depends on 'aws-sdk/clients/mobileanalytics'. CommonJS or AMD dependencies can cause
optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSPinpointProvider.js depends on 'aws-sdk/clients/pinpoint'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/analytics/lib-esm/Providers/AmazonPersonalizeProvider.js depends on 'aws-sdk/clients/personalizeevents'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/interactions/lib-esm/Providers/AWSLexProvider.js depends on 'aws-sdk/clients/lexruntime'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js depends on '@aws-sdk/eventstream-marshaller'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js depends on '@aws-sdk/util-utf8-node'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js depends on 'aws-sdk/clients/polly'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js depends on 'aws-sdk/clients/translate'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js depends on 'aws-sdk/clients/rekognition'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js depends on 'aws-sdk/clients/textract'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/predictions/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.js depends on 'aws-sdk'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/storage/lib-esm/Providers/AWSS3Provider.js depends on 'aws-sdk/clients/s3'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js depends on 'crypto-js/hmac-sha256'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js depends on 'crypto-js/lib-typedarrays'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/apollo-client/index.js depends on 'graphql/language/printer'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/graphql-tag/lib/index.js depends on 'graphql'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src/app/chat-app/appsync.service.ts depends on 'aws-appsync'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src/app/chat-app/appsync.service.ts depends on 'aws-appsync/lib/link/auth-link'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src/app/chat-app/chat-helper.ts depends on 'immutability-helper'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src/app/chat-app/chat-user-list/chat-user-list.component.ts depends on 'uuid'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Warning: Unable to locate stylesheet: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/https:/code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css
Warning: Unable to locate stylesheet: /mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/https:/maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:34:0-49 - Error: Module not found: Error: Can't resolve './graphql' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'graphql.mjs'?
BREAKING CHANGE: The request './graphql' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:36:0-47:50 - Error: Module not found: Error: Can't resolve './type' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './type' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:49:0-53:205 - Error: Module not found: Error: Can't resolve './language' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './language' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:55:0-101 - Error: Module not found: Error: Can't resolve './execution' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './execution' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:56:0-68 - Error: Module not found: Error: Can't resolve './subscription' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './subscription' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:58:0-60:675 - Error: Module not found: Error: Can't resolve './validation' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './validation' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:62:0-64 - Error: Module not found: Error: Can't resolve './error' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './error' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/index.mjs:64:0-98:42 - Error: Module not found: Error: Can't resolve './utilities' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './utilities' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:9:0-41 - Error: Module not found: Error: Can't resolve '../jsutils/inspect' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'inspect.mjs'?
BREAKING CHANGE: The request '../jsutils/inspect' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:10:0-34 - Error: Module not found: Error: Can't
resolve './source' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'source.mjs'?
BREAKING CHANGE: The request './source' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:11:0-39 - Error: Module not found: Error: Can't
resolve '../error' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request '../error' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:12:0-63 - Error: Module not found: Error: Can't
resolve './lexer' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'lexer.mjs'?
BREAKING CHANGE: The request './lexer' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:13:0-31 - Error: Module not found: Error: Can't
resolve './kinds' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'kinds.mjs'?
BREAKING CHANGE: The request './kinds' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/parser.mjs:14:0-56 - Error: Module not found: Error: Can't
resolve './directiveLocation' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'directiveLocation.mjs'?
BREAKING CHANGE: The request './directiveLocation' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/node_modules/graphql/language/printer.mjs:7:0-34 - Error: Module not found: Error: Can't
resolve './visitor' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/@aws-amplify/api/node_modules/graphql/language'
Did you mean 'visitor.mjs'?
BREAKING CHANGE: The request './visitor' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
./node_modules/@aws-amplify/api/lib-esm/API.js:612:40-52 - Error: export 'GraphQLError' (imported as 'GraphQLError') was
not found in 'graphql' (module has no exports)
./node_modules/@aws-amplify/api/lib-esm/API.js:629:41-53 - Error: export 'GraphQLError' (imported as 'GraphQLError') was
not found in 'graphql' (module has no exports)
./node_modules/@aws-amplify/api/lib-esm/API.js:677:69-81 - Error: export 'GraphQLError' (imported as 'GraphQLError') was
not found in 'graphql' (module has no exports)
./node_modules/aws-amplify-angular/ivy_ngcc/dist/src/components/interactions/chatbot/chatbot.component.core.js:184:0-35 - Error: Module not found: Error: Can't resolve 'util' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/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:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
./node_modules/aws-appsync/node_modules/aws-sdk/lib/event_listeners.js:560:21-44 - Error: Module not found: Error: Can't
resolve 'util' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/aws-appsync/node_modules/aws-sdk/lib'
Did you mean './util'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src, node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
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:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
./node_modules/aws-sdk/lib/event_listeners.js:560:21-44 - Error: Module not found: Error: Can't resolve 'util' in '/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/node_modules/aws-sdk/lib'
Did you mean './util'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular/src, node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
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:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
Error: src/app/chat-app/chat-app.module.ts:43:21 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).
43 static forRoot(): ModuleWithProviders {
~~~~~~~~~~~~~~~~~~~
** Angular Live Development Server is listening on localhost:45446, open your browser on http://localhost:45446/ **
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/DumpStack.log.tmp'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/hiberfil.sys'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/pagefile.sys'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/swapfile.sys'
Watchpack Error (stats): Error: EACCES: permission denied, lstat '/mnt/c/pagefile.sys'
Watchpack Error (stats): Error: EACCES: permission denied, lstat '/mnt/c/pagefile.sys'
and here is my ng --version
root@DESKTOP-QGFU0QB:/mnt/c/Users/ask/Final-Amplify/aws-mobile-appsync-chat-starter-angular# ng --version
/ △ \ | '_ \ /
| | | | |/ _
| '__| | | | | | |/ ___ | | | | (| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/
Angular CLI: 12.0.0
Node: 16.1.0
Package Manager: npm 7.11.2
OS: linux x64
Angular: 12.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker
Package Version
@angular-devkit/architect 0.1200.0
@angular-devkit/build-angular 12.0.0
@angular-devkit/build-webpack 0.1200.0
@angular-devkit/core 12.0.0
@angular-devkit/schematics 12.0.0
@angular/http 7.0.1
@schematics/angular 12.0.0
rxjs 6.3.3
typescript 4.2.4
webpack 5.36.2
I did all of this on visual studio "ubuntu 16" terminal and also tried it on PowerShell too, but the same errors
any help, please?
The text was updated successfully, but these errors were encountered: