aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
449 stars 113 forks source link

Build fails without any error output #1587

Closed ntekka closed 2 years ago

ntekka commented 3 years ago

Please help!

I've tried hundreds of configuration combination without success. I also have a second App with the almost exact setting that works just fine but was set up months ago.

Here is the configuration and log that I tried, my custom amplifyPull.sh script works in previous project and it basically does a amplify pull to get aws-config.json:

version: 1
frontend:
  phases:
    preBuild:
      commands:
        # Go back to root dir
        - yarn install --ignore-engines
        - chmod u+x amplifyPull.sh
        - ./amplifyPull.sh
    build:
      commands:
        - yarn build:admin
        - yarn export:admin
        - ls
  artifacts:
    # IMPORTANT - Please verify your build output directory
    baseDirectory: /hubportal/out
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

Here is the root structure

amplify.sh
amplify.yml
_amplify.yml.backup
CHANGELOG.md
common-lambda
common-ui
customHttp.yml
hubportal
lerna.json
node_modules
NOTES.md
package.json
README.md
service-backend
shared
tsconfig.json
tslint.json
utilities
vendor-portal
website
yarn.lock

log

2021-02-19T20:52:00.236Z [INFO]: Git SSH Key acquired
2021-02-19T20:52:00.315Z [INFO]: # Cloning repository: git@github.com:artbeatstudios/artbeatstudios_amplify_site.git
2021-02-19T20:52:00.371Z [INFO]: Agent pid 127
2021-02-19T20:52:00.375Z [INFO]: Identity added: /root/.ssh/git_rsa (/root/.ssh/git_rsa)
2021-02-19T20:52:00.557Z [INFO]: Cloning into 'artbeatstudios_amplify_site'...
2021-02-19T20:52:00.770Z [INFO]: Warning: Permanently added the RSA host key for IP address '192.30.255.113' to the list of known hosts.
2021-02-19T20:52:10.846Z [INFO]: # Switching to commit: a4c63cf31108eb74918bac9190509f2ff3e8f28d
2021-02-19T20:52:10.991Z [INFO]: Agent pid 140
2021-02-19T20:52:10.994Z [INFO]: Identity added: /root/.ssh/git_rsa (/root/.ssh/git_rsa)
2021-02-19T20:52:11.701Z [INFO]: Note: switching to 'a4c63cf31108eb74918bac9190509f2ff3e8f28d'.
                                 You are in 'detached HEAD' state. You can look around, make experimental
                                 changes and commit them, and you can discard any commits you make in this
                                 state without impacting any branches by switching back to a branch.
                                 If you want to create a new branch to retain commits you create, you may
                                 do so (now or later) by using -c with the switch command. Example:
                                 git switch -c <new-branch-name>
                                 Or undo this operation with:
                                 git switch -
                                 Turn off this advice by setting config variable advice.detachedHead to false
                                 HEAD is now at a4c63cf feat(service-backend): updated auth to require special character in password
2021-02-19T20:52:11.730Z [INFO]: Successfully cleaned up Git credentials
2021-02-19T20:52:11.731Z [INFO]: # Checking for Git submodules at: /codebuild/output/src751356523/src/artbeatstudios_amplify_site/.gitmodules
2021-02-19T20:52:11.756Z [INFO]: # Retrieving cache...
2021-02-19T20:52:26.657Z [INFO]: # Extracting cache...
2021-02-19T20:52:37.952Z [INFO]: # Extraction completed
2021-02-19T20:52:38.192Z [INFO]: # Retrieving environment cache...
2021-02-19T20:52:38.229Z [INFO]: # Retrieved environment cache
2021-02-19T20:52:49.393Z [INFO]: ## Starting Frontend Build
                                 # Starting phase: preBuild
                                 # Executing command: yarn install --ignore-engines
2021-02-19T20:52:49.928Z [INFO]: yarn install v1.22.0
2021-02-19T20:52:50.103Z [INFO]: [1/4] Resolving packages...
2021-02-19T20:52:50.797Z [INFO]: [2/4] Fetching packages...
2021-02-19T20:53:23.583Z [INFO]: info fsevents@2.1.3: The platform "linux" is incompatible with this module.
2021-02-19T20:53:23.586Z [INFO]: info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
                                 info fsevents@1.2.13: The platform "linux" is incompatible with this module.
                                 info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
2021-02-19T20:53:23.587Z [INFO]: [3/4] Linking dependencies...
2021-02-19T20:53:23.589Z [WARNING]: warning " > babel-jest@26.3.0" has unmet peer dependency "@babel/core@^7.0.0".
                                    warning "babel-jest > babel-preset-jest@26.5.0" has unmet peer dependency "@babel/core@^7.0.0".
2021-02-19T20:53:23.589Z [WARNING]: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax@0.1.4" has unmet peer dependency "@babel/core@^7.0.0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-async-generators@7.8.4" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-bigint@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-class-properties@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-import-meta@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-json-strings@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-logical-assignment-operators@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-nullish-coalescing-operator@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
2021-02-19T20:53:23.589Z [WARNING]: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-numeric-separator@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-object-rest-spread@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-optional-catch-binding@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
                                    warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-optional-chaining@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
2021-02-19T20:53:23.592Z [WARNING]: warning " > @artbeat/common-ui@1.0.0" has unmet peer dependency "aws-amplify@^3.3.3".
2021-02-19T20:53:23.592Z [WARNING]: warning " > @artbeat/common-ui@1.0.0" has unmet peer dependency "graphql-tag@^2.11.0".
                                    warning " > @artbeat/common-ui@1.0.0" has unmet peer dependency "redux@^4.0.5".
                                    warning " > @artbeat/common-ui@1.0.0" has unmet peer dependency "react-redux@^7.2.2".
                                    warning " > @artbeat/common-ui@1.0.0" has unmet peer dependency "redux-thunk@^2.3.0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > @aws-amplify/ui-react@0.2.23" has incorrect peer dependency "react@^16.7.0".
2021-02-19T20:53:23.592Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > @aws-amplify/ui-react@0.2.23" has incorrect peer dependency "react-dom@^16.7.0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > @shopify/polaris@6.0.1" has incorrect peer dependency "react@^16.9.0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > @shopify/polaris@6.0.1" has incorrect peer dependency "react-dom@^16.9.0".
2021-02-19T20:53:23.592Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > next-seo@4.11.0" has incorrect peer dependency "next@^8.1.1-canary.54 || ^9.0.0".
2021-02-19T20:53:23.593Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > next-seo@4.11.0" has incorrect peer dependency "react@^16.0.0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > next-seo@4.11.0" has incorrect peer dependency "react-dom@^16.0.0".
2021-02-19T20:53:23.593Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > react-redux@7.2.1" has incorrect peer dependency "react@^16.8.3".
2021-02-19T20:53:23.593Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > react-use@15.3.4" has incorrect peer dependency "react@^16.8.0".
2021-02-19T20:53:23.593Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > react-use@15.3.4" has incorrect peer dependency "react-dom@^16.8.0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > swr@0.3.5" has incorrect peer dependency "react@^16.11.0".
2021-02-19T20:53:23.593Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > babel-plugin-inline-react-svg@1.1.1" has unmet peer dependency "@babel/core@^7.0.0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > webp-loader@0.6.0" has unmet peer dependency "webpack-cli@*".
2021-02-19T20:53:23.593Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/service-backend > rollup-plugin-node-externals@2.2.0" has unmet peer dependency "builtin-modules@^3.1.0".
2021-02-19T20:53:23.594Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > bootstrap@4.5.3" has unmet peer dependency "jquery@1.9.1 - 3".
2021-02-19T20:53:23.594Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > bootstrap@4.5.3" has unmet peer dependency "popper.js@^1.16.1".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-animate-on-scroll@2.1.5" has incorrect peer dependency "react@>= 15.4.1 < 17.0.0-0".
2021-02-19T20:53:23.594Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-credit-card-input@1.1.5" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
2021-02-19T20:53:23.594Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-credit-card-input@1.1.5" has incorrect peer dependency "react-dom@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
2021-02-19T20:53:23.594Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-cropper@2.1.4" has incorrect peer dependency "react@^16.0.0-0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-datepicker@3.5.0" has incorrect peer dependency "react@^16.9.0".
2021-02-19T20:53:23.594Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-datepicker@3.5.0" has incorrect peer dependency "react-dom@^16.9.0".
2021-02-19T20:53:23.595Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-lazyload@3.1.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-lazyload@3.1.0" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
2021-02-19T20:53:23.595Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-resize-detector@5.2.0" has incorrect peer dependency "react@^16.0.0".
                                    warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-resize-detector@5.2.0" has incorrect peer dependency "react-dom@^16.0.0".
2021-02-19T20:53:23.595Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > styled-components@5.2.1" has unmet peer dependency "react-is@>= 16.8.0".
2021-02-19T20:53:23.595Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > aws-amplify > @aws-amplify/datastore@2.6.0" has unmet peer dependency "@react-native-community/netinfo@^5.5.0".
2021-02-19T20:53:23.596Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/utilities > aws-amplify > @aws-amplify/datastore@2.7.2" has unmet peer dependency "@react-native-community/netinfo@^5.5.0".
2021-02-19T20:53:23.596Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-datepicker > react-popper@1.3.8" has incorrect peer dependency "react@0.14.x || ^15.0.0 || ^16.0.0".
2021-02-19T20:53:23.599Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/website > react-datepicker > react-popper > create-react-context@0.3.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
2021-02-19T20:53:23.600Z [WARNING]: warning "workspace-aggregator-ed116ea4-9cf8-4276-87dc-370592814e62 > @artbeat/hubportal > aws-amplify > @aws-amplify/analytics > @aws-sdk/client-firehose > @aws-sdk/middleware-retry > react-native-get-random-values@1.5.0" has unmet peer dependency "react-native@>=0.56".
2021-02-19T20:54:01.655Z [INFO]: [4/4] Building fresh packages...
2021-02-19T20:54:03.453Z [INFO]: Done in 73.53s.
2021-02-19T20:54:03.499Z [INFO]: # Executing command: chmod u+x amplifyPull.sh
2021-02-19T20:54:03.500Z [INFO]: # Executing command: ./amplifyPull.sh
2021-02-19T20:54:03.502Z [INFO]: amplifyPull.sh
                                 amplify.sh
                                 amplify.yml
                                 _amplify.yml.backup
                                 CHANGELOG.md
                                 common-lambda
                                 common-ui
                                 customHttp.yml
                                 hubportal
                                 lerna.json
                                 node_modules
                                 NOTES.md
                                 package.json
                                 README.md
                                 service-backend
                                 shared
                                 tsconfig.json
                                 tslint.json
                                 utilities
                                 vendor-portal
                                 website
                                 yarn.lock
2021-02-19T20:54:03.503Z [INFO]: Initializing for branch develop and env dev
                                 Amplify App Id: d35pifspegv1vm
2021-02-19T20:54:04.396Z [INFO]: 4.29.4
2021-02-19T20:54:12.154Z [WARNING]: npm
2021-02-19T20:54:12.157Z [WARNING]: WARN deprecated graphql-import@0.7.1: GraphQL Import has been deprecated and merged into GraphQL Tools, so it will no longer get updates. Use GraphQL Tools instead to stay up-to-date! Check out https://www.graphql-tools.com/docs/migration-from-import for migration and https://the-guild.dev/blog/graphql-tools-v6 for new changes.
2021-02-19T20:54:22.936Z [WARNING]: npm WARN deprecated @graphql-toolkit/common@0.9.7: GraphQL Toolkit is deprecated and merged into GraphQL Tools, so it will no longer get updates. Use GraphQL Tools instead to stay up-to-date! Check out https://www.graphql-tools.com/docs/migration-from-toolkit for migration and https://the-guild.dev/blog/graphql-tools-v6 for new changes.
2021-02-19T20:54:26.939Z [WARNING]: npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
2021-02-19T20:54:26.946Z [WARNING]: npm
2021-02-19T20:54:26.946Z [WARNING]: WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
2021-02-19T20:54:27.399Z [WARNING]: npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
2021-02-19T20:54:27.567Z [WARNING]: npm WARN
2021-02-19T20:54:27.567Z [WARNING]: deprecated @graphql-toolkit/common@0.6.6: GraphQL Toolkit is deprecated and merged into GraphQL Tools, so it will no longer get updates. Use GraphQL Tools instead to stay up-to-date! Check out https://www.graphql-tools.com/docs/migration-from-toolkit for migration and https://the-guild.dev/blog/graphql-tools-v6 for new changes.
2021-02-19T20:54:43.455Z [INFO]: /root/.nvm/versions/node/v12.19.0/bin/amplify -> /root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/bin/amplify
2021-02-19T20:54:43.546Z [INFO]: > core-js@3.9.0 postinstall /root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-graphql-types-generator/node_modules/core-js
                                 > node -e "try{require('./postinstall')}catch(e){}"
2021-02-19T20:54:43.606Z [INFO]: > core-js@2.6.12 postinstall /root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli/node_modules/core-js
                                 > node -e "try{require('./postinstall')}catch(e){}"
2021-02-19T20:54:43.683Z [INFO]: > @aws-amplify/cli@4.44.0 postinstall /root/.nvm/versions/node/v12.19.0/lib/node_modules/@aws-amplify/cli
                                 > node scripts/post-install.js
2021-02-19T20:54:43.832Z [INFO]: 
2021-02-19T20:54:43.832Z [INFO]: ----------------------------------------
2021-02-19T20:54:43.832Z [INFO]: Successfully installed the Amplify CLI
                                 ----------------------------------------
                                 JavaScript Getting Started - https://docs.amplify.aws/start
                                 Android Getting Started - https://docs.amplify.aws/start/q/integration/android
                                 iOS Getting Started - https://docs.amplify.aws/start/q/integration/ios
                                 Flutter Getting Started - https://docs.amplify.aws/start/q/integration/flutter
2021-02-19T20:54:43.832Z [INFO]: Amplify CLI collects anonymized usage data, which is used to help understand
                                 how to improve the product. If you don't wish to send anonymized Amplify CLI
                                 usage data to AWS, run amplify configure --usage-data-off  to opt-out.
                                 Learn more - https://docs.amplify.aws/cli/reference/usage-data
2021-02-19T20:54:43.846Z [WARNING]: npm
2021-02-19T20:54:43.847Z [WARNING]: WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/@aws-amplify/cli/node_modules/chokidar/node_modules/fsevents):
                                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2021-02-19T20:54:43.847Z [WARNING]: 
2021-02-19T20:54:43.848Z [INFO]: + @aws-amplify/cli@4.44.0
                                 added 243 packages from 92 contributors, removed 115 packages, updated 209 packages and moved 17 packages in 38.535s
2021-02-19T20:54:43.936Z [INFO]: Starting amplify pull
2021-02-19T20:54:43.936Z [INFO]: {"projectName":"artbeatServices","envName":"dev","appId":"d35pifspegv1vm","defaultEditor":"code"}
                                 {"awscloudformation":{"configLevel":"project","useProfile":true,"profileName":"default"}}
                                 {"frontend":"javascript","framework":"react","config":{"SourceDir":"src","DistributionDir":"build","BuildCommand":"npm run-script build","StartCommand":"npm run-script start"}}
2021-02-19T20:54:43.937Z [INFO]: amplify
                                 images
                                 index.ts
                                 node_modules
                                 package.json
                                 package-lock.json
                                 README.md
                                 rollup.config.js
                                 src
                                 sumerian_exports_6a9062984e334dc09ae51efed79a7655.json
                                 tsconfig.json
2021-02-19T20:54:45.266Z [INFO]: Initializing new Amplify CLI version...
2021-02-19T20:54:45.619Z [INFO]: Done initializing new version.
2021-02-19T20:54:45.619Z [INFO]: Scanning for plugins...
2021-02-19T20:54:46.235Z [INFO]: Plugin scan successful
2021-02-19T20:54:53.358Z [INFO]: Amplify AppID found: d35pifspegv1vm. Amplify App name is: artbeatServices
2021-02-19T20:54:53.421Z [INFO]: Backend environment dev found in Amplify Console app: artbeatServices
2021-02-19T20:54:57.454Z [WARNING]: - Fetching updates to backend environment: dev from the cloud.
2021-02-19T20:55:00.629Z [WARNING]: ✔ Successfully pulled backend environment dev from the cloud.
2021-02-19T20:55:01.315Z [INFO]: 
2021-02-19T20:55:01.494Z [INFO]: API.ts
                                 aws-exports.js
                                 graphql
2021-02-19T20:55:01.495Z [INFO]: backend
                                 cli.json
                                 #current-cloud-backend
                                 team-provider-info.json
2021-02-19T20:55:01.495Z [INFO]: Done with amplify pull
2021-02-19T20:55:01.496Z [INFO]: # Completed phase: preBuild
2021-02-19T20:55:01.496Z [INFO]: # Starting phase: build
                                 # Executing command: yarn build:admin
2021-02-19T20:55:01.621Z [INFO]: yarn run v1.22.0
2021-02-19T20:55:01.643Z [INFO]: $ yarn --cwd hubportal build
2021-02-19T20:55:01.791Z [INFO]: $ next build
2021-02-19T20:55:02.318Z [WARNING]: Browserslist: caniuse-lite is outdated. Please run:
                                    npx browserslist@latest --update-db
2021-02-19T20:55:02.399Z [INFO]: Loaded env from /codebuild/output/src751356523/src/artbeatstudios_amplify_site/hubportal/.env
2021-02-19T20:55:02.403Z [INFO]: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://err.sh/next.js/no-cache
2021-02-19T20:55:02.404Z [INFO]: info  - Creating an optimized production build...
2021-02-19T20:55:02.418Z [INFO]: Attention: Next.js now collects completely anonymous telemetry regarding usage.
2021-02-19T20:55:02.418Z [INFO]: This information is used to shape Next.js' roadmap and prioritize features.
                                 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
                                 https://nextjs.org/telemetry
2021-02-19T20:55:08.316Z [INFO]: info  - Using external babel configuration from /codebuild/output/src751356523/src/artbeatstudios_amplify_site/hubportal/package.json
2021-02-19T20:55:40.499Z [INFO]: info  - Compiled successfully
                                 info  - Collecting page data...
2021-02-19T20:55:42.707Z [INFO]: info  - Generating static pages (0/8)
2021-02-19T20:55:44.084Z [INFO]: info  - Generating static pages (2/8)
2021-02-19T20:55:44.134Z [INFO]: info  - Generating static pages (4/8)
2021-02-19T20:55:44.159Z [INFO]: info  - Generating static pages (6/8)
2021-02-19T20:55:44.225Z [INFO]: info  - Generating static pages (8/8)
2021-02-19T20:55:44.226Z [INFO]: info  - Finalizing page optimization...
2021-02-19T20:55:44.229Z [INFO]: 
2021-02-19T20:55:44.236Z [INFO]: Page                                                           Size     First Load JS
                                 ┌ ○ /                                                          255 B           307 kB
                                 ├   /_app                                                      0 B             301 kB
                                 ├ ○ /404                                                       3.47 kB         305 kB
                                 ├ ○ /collections                                               4.71 kB         311 kB
                                 ├ ○ /collections/[id]                                          3.7 kB          337 kB
                                 ├ ○ /orders                                                    2.32 kB         324 kB
                                 ├   └ css/d5b5b2491c599283d372.css                             1.06 kB
                                 ├ ○ /orders/[id]                                               8.29 kB         332 kB
                                 ├   └ css/2f875ae29565308d1eb1.css                             1.28 kB
                                 ├ ○ /products                                                  6.68 kB         323 kB
                                 └ ○ /products/[id]                                             8.52 kB         342 kB
                                 └ css/a7b1cfb9802f143585e0.css                             56 B
                                 + First Load JS shared by all                                  301 kB
                                 ├ chunks/3bd6a43b497b380534269f55225991e5e53537ba.e30e13.js  3.22 kB
                                 ├ chunks/4494e51d099e6da7708e58528bdbfb8fa0cfac43.3f1507.js  26.2 kB
                                 ├ chunks/65b7648a59a25de7aca5fa35c6374d04f9dfcd2c.693e9f.js  6.2 kB
                                 ├ chunks/669a8721967340cf7c9fbb455d0b294eaca9cdb3.c4ba7d.js  138 kB
                                 ├ chunks/9343e35adcff7d07d55d0648f9a045b2fda581a6.6cc1aa.js  5.04 kB
                                 ├ chunks/99fec3bdefe6bcc7f8094fbb2795741d9f278996.46aba5.js  5.35 kB
                                 ├ chunks/af7e0331d0e1956db56b5a423fa3fd4e23abd526.9754fd.js  13.3 kB
                                 ├ chunks/eb2751f9.093638.js                                  69 B
                                 ├ chunks/f9a5cec4.d13653.js                                  1.99 kB
                                 ├ chunks/framework.b474c2.js                                 42.4 kB
                                 ├ chunks/main.40fa44.js                                      6.36 kB
                                 ├ chunks/pages/_app.a19fb6.js                                50.7 kB
                                 ├ chunks/webpack.058f9b.js                                   1.83 kB
                                 ├ css/588e61adcedd46b63fb7.css                               2.71 kB
                                 └ css/61a4c3a72f921f9117a1.css                               32.8 kB
2021-02-19T20:55:44.236Z [INFO]: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
                                 ○  (Static)  automatically rendered as static HTML (uses no initial props)
                                 ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
                                 (ISR)     incremental static regeneration (uses revalidate in getStaticProps)
2021-02-19T20:55:44.366Z [INFO]: Done in 42.75s.
2021-02-19T20:55:44.370Z [INFO]: # Executing command: yarn export:admin
2021-02-19T20:55:44.498Z [INFO]: yarn run v1.22.0
2021-02-19T20:55:44.521Z [INFO]: $ yarn --cwd hubportal export
2021-02-19T20:55:44.671Z [INFO]: $ next export
2021-02-19T20:55:44.810Z [INFO]: Loaded env from /codebuild/output/src751356523/src/artbeatstudios_amplify_site/hubportal/.env
2021-02-19T20:55:44.933Z [INFO]: info  - using build directory: /codebuild/output/src751356523/src/artbeatstudios_amplify_site/hubportal/.next
2021-02-19T20:55:44.940Z [INFO]: info  - Copying "static build" directory
2021-02-19T20:55:44.951Z [INFO]: info  - No "exportPathMap" found in "next.config.js". Generating map from "./pages"
2021-02-19T20:55:44.952Z [INFO]: info  - Launching 3 workers
2021-02-19T20:55:44.952Z [INFO]: info  - Exporting (0/8)
2021-02-19T20:55:44.952Z [INFO]: info  - Copying "public" directory
2021-02-19T20:55:46.217Z [INFO]: info  - Exporting (2/8)
2021-02-19T20:55:46.218Z [INFO]: info  - Exporting (4/8)
2021-02-19T20:55:46.220Z [INFO]: info  - Exporting (6/8)
2021-02-19T20:55:46.268Z [INFO]: info  - Exporting (8/8)
2021-02-19T20:55:46.269Z [INFO]: Export successful. Files written to /codebuild/output/src751356523/src/artbeatstudios_amplify_site/hubportal/out
2021-02-19T20:55:46.283Z [INFO]: Done in 1.79s.
2021-02-19T20:55:46.288Z [INFO]: # Executing command: ls
2021-02-19T20:55:46.290Z [INFO]: amplifyPull.sh
                                 amplify.sh
                                 amplify.yml
                                 _amplify.yml.backup
                                 CHANGELOG.md
                                 common-lambda
                                 common-ui
                                 customHttp.yml
                                 hubportal
                                 lerna.json
                                 node_modules
                                 NOTES.md
                                 package.json
                                 README.md
                                 service-backend
                                 shared
                                 tsconfig.json
                                 tslint.json
                                 utilities
                                 vendor-portal
                                 website
                                 yarn.lock
2021-02-19T20:55:46.290Z [INFO]: # Completed phase: build
                                 ## Completed Frontend Build
2021-02-19T20:55:46.291Z [INFO]: ## Build completed successfully
2021-02-19T20:55:46.293Z [INFO]: # Starting caching...
2021-02-19T20:55:46.422Z [INFO]: Creating cache artifact...
2021-02-19T20:56:04.817Z [INFO]: # Cache artifact is: 1489MB
2021-02-19T20:56:04.915Z [INFO]: # Uploading cache artifact...
2021-02-19T20:56:19.213Z [INFO]: # Caching completed
2021-02-19T20:56:19.539Z [INFO]: # Starting environment caching...
2021-02-19T20:56:19.539Z [INFO]: # Environment caching completed
Terminating logging...
ganipcanot commented 3 years ago

From our side we see this:

2021-02-17T23:16:02.761Z [WARNING]: Failed to compile.
2021-02-17T23:16:02.765Z [WARNING]: ./src/pages/_app.tsx:3:24
                                    Type error: Cannot find module '@artbeat/service-backend/src/aws-exports' or its corresponding type declarations.
                                      1 | import AuthGuard from '@artbeat/common-ui/components/AuthGuard';
                                      2 | import { getCookieSettings } from '@artbeat/common-ui/services/route';
                                    > 3 | import awsExports from '@artbeat/service-backend/src/aws-exports';
                                        |                        ^
                                      4 | import Amplify from '@aws-amplify/core';
                                      5 | import '@shopify/polaris/dist/styles.css';
                                      6 | import { DefaultSeo } from 'next-seo';
                                      2021-02-17T23:16:02.783Z [WARNING]: error Command failed with exit code 1.
2021-02-17T23:16:02.784Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2021-02-17T23:16:02.798Z [WARNING]: error Command failed with exit code 1.
2021-02-17T23:16:02.798Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2021-02-17T23:16:02.803Z [ERROR]: !!! Build failed
2021-02-17T23:16:02.803Z [ERROR]: !!! Non-Zero Exit Code detected
2021-02-17T23:16:02.803Z [INFO]: # Starting environment caching...

We will look into why some log messages are not showing up in the build output.

tmsrose commented 3 years ago

Having same issue any possible solution?

shreddish commented 3 years ago

I am having "similar" issue my build log just says Failed to compile. at the end without the following error messages below it

From our side we see this:

2021-02-17T23:16:02.761Z [WARNING]: Failed to compile.
2021-02-17T23:16:02.765Z [WARNING]: ./src/pages/_app.tsx:3:24
                                    Type error: Cannot find module '@artbeat/service-backend/src/aws-exports' or its corresponding type declarations.
                                      1 | import AuthGuard from '@artbeat/common-ui/components/AuthGuard';
                                      2 | import { getCookieSettings } from '@artbeat/common-ui/services/route';
                                    > 3 | import awsExports from '@artbeat/service-backend/src/aws-exports';
                                        |                        ^
                                      4 | import Amplify from '@aws-amplify/core';
                                      5 | import '@shopify/polaris/dist/styles.css';
                                      6 | import { DefaultSeo } from 'next-seo';
                                      2021-02-17T23:16:02.783Z [WARNING]: error Command failed with exit code 1.
2021-02-17T23:16:02.784Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2021-02-17T23:16:02.798Z [WARNING]: error Command failed with exit code 1.
2021-02-17T23:16:02.798Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2021-02-17T23:16:02.803Z [ERROR]: !!! Build failed
2021-02-17T23:16:02.803Z [ERROR]: !!! Non-Zero Exit Code detected
2021-02-17T23:16:02.803Z [INFO]: # Starting environment caching...

We will look into why some log messages are not showing up in the build output.

I am having "similar" issue my build log just says Failed to compile. at the end without the following error messages below it. From what im gathering it's a file name issue i.e changing app.ts -> App.ts but without the errors showing up for the file that is causing the issue I don't know which folder/file to fix - please help here how can I get the logs you are showing

victorccccc commented 2 years ago

Hi @ntekka, @shreddish. Sorry for the inconvenience, we've made many improvements in our build system, does this issue still persist on your end? If you still have questions, please include your AppId in your comment. Thank you!

ntekka commented 2 years ago

@victorccccc thanks for responding. It may have been an old Amplify build but either way, I've since moved to serverless-nextjs to gain more control over debugging errors. My project has gotten beyond the intended use of the Amplify console so I do need the extra control.

I still do appreciate the work your team is doing! keep it up!

victorccccc commented 2 years ago

Closing this issue, but feel free to re-open. Thanks

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.