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

Multiregion - Building a UI layer #246

Open restourgie opened 5 years ago

restourgie commented 5 years ago

Hi,

I firstly I still received the same error as described in https://github.com/aws-samples/aws-serverless-workshops/issues/190 I used the fix, and uploaded the build to the s3 bucket using the instructions from step 4. When requesting the resources from the cloudfront url I see no page displayed and see the following error in the browser console:

instanceOf.js:3 Uncaught ReferenceError: process is not defined at Module../node_modules/graphql/module/jsutils/instanceOf.js (instanceOf.js:3) at webpack_require__ (bootstrap:83) at Module../node_modules/graphql/module/type/definition.js (definition.js:1) at webpack_require (bootstrap:83) at Module../node_modules/graphql/module/type/validate.js (validate.js:1) at __webpack_require (bootstrap:83) at Module../node_modules/graphql/module/graphql.js (graphql.js:1) at webpack_require__ (bootstrap:83) at Module../node_modules/graphql/module/index.js (vendor.js:133627) at webpack_require__ (bootstrap:83)

  ./node_modules/graphql/module/jsutils/instanceOf.js @ instanceOf.js:3
  __webpack_require__ @ bootstrap:83
  ./node_modules/graphql/module/type/definition.js @ definition.js:1
  __webpack_require__ @ bootstrap:83
  ./node_modules/graphql/module/type/validate.js @ validate.js:1
  __webpack_require__ @ bootstrap:83
  ./node_modules/graphql/module/graphql.js @ graphql.js:1
  __webpack_require__ @ bootstrap:83
  ./node_modules/graphql/module/index.js @ vendor.js:133627
  __webpack_require__ @ bootstrap:83
  ./node_modules/@aws-amplify/api/lib/API.js @ API.js:67
  __webpack_require__ @ bootstrap:83
  ./node_modules/@aws-amplify/api/lib/index.js @ index.js:15
  __webpack_require__ @ bootstrap:83
  ./node_modules/aws-amplify/lib/index.js @ index.js:27
  __webpack_require__ @ bootstrap:83
  ./src/app/services/cognito.service.ts @ app.module.ts:46
  __webpack_require__ @ bootstrap:83
  ./src/app/app.module.ts @ app.component.ts:11
  __webpack_require__ @ bootstrap:83
  ./src/main.ts @ main.ts:1
  __webpack_require__ @ bootstrap:83
  0 @ main.ts:25
  __webpack_require__ @ bootstrap:83
  checkDeferredModules @ bootstrap:45
  webpackJsonpCallback @ bootstrap:32
  (anonymous)