aws-samples / aws-serverless-workshops

Code and walkthrough labs to set up serverless applications for Wild Rydes workshops
http://wildrydes.com
Apache License 2.0
4.2k stars 2.63k forks source link

ERROR in ./src/polyfills.ts Module not found: Error: Can't resolve 'core-js/es6/reflect' in '/home/ec2-user/environment/aws-serverless-workshops/MultiRegion/2_UI/src' ERROR in ./src/polyfills.ts Module not found: Error: Can't resolve 'core-js/es7/reflect' in '/home/ec2-user/environment/aws-serverless-workshops/MultiRegion/2_UI/src' #190

Open Akansha18497 opened 5 years ago

Akansha18497 commented 5 years ago

Error while running npm run build command. Kindly help.

oleksandr-shkovyra commented 5 years ago

+1

yxycman commented 5 years ago

that could help:


index 01e1361..c04cd0e 100644
--- a/MultiRegion/2_UI/package.json
+++ b/MultiRegion/2_UI/package.json
@@ -1,6 +1,6 @@
 {
   "name": "sxr-ui",
-  "version": "0.0.0",
+  "version": "0.1.0",
   "license": "MIT",
   "scripts": {
     "ng": "ng",
@@ -24,7 +24,7 @@
     "@swimlane/ngx-datatable": "^13.1.0",
     "aws-amplify": "^1.0.11",
     "aws-amplify-angular": "^2.0.3",
-    "core-js": "*",
+    "core-js": "2.6.0",
     "eslint": "^5.5.0",
     "ng-bootstrap": "*",
     "ngx-facebook": "*",```