Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to deploy on AWS Amplify #574

Open
keshav263 opened this issue May 20, 2023 · 3 comments
Open

Not able to deploy on AWS Amplify #574

keshav263 opened this issue May 20, 2023 · 3 comments

Comments

@keshav263
Copy link

Bug Report

Current Behavior

Everything works fine on the amplify, the build command succeeds and as soon as crawling is finished. I get an error non zero exit code. The logs are not at all helpful. Can someone please help me out. I have been stuck at it for days


./package.json

{
	"name": "client",
	"version": "0.1.0",
	"private": true,
	"dependencies": {
		"@emotion/react": "^11.7.1",
		"@emotion/styled": "^11.6.0",
		"@mui/material": "^5.4.1",
		"@mui/system": "^5.13.1",
		"@mui/x-date-pickers": "^5.0.9",
		"@testing-library/jest-dom": "^5.16.2",
		"@testing-library/react": "^12.1.2",
		"@testing-library/user-event": "^13.5.0",
		"autosuggest-highlight": "^3.3.4",
		"axios": "^0.26.0",
		"crypto-js": "^4.1.1",
		"date-fns": "^2.28.0",
		"dayjs": "^1.11.6",
		"eslint-config-react-app": "^7.0.1",
		"framer-motion": "^6.2.6",
		"html-react-parser": "^3.0.4",
		"lottie-react": "^2.2.1",
		"prop-types": "^15.8.1",
		"react": "^17.0.2",
		"react-calendar": "^4.0.0",
		"react-dom": "^17.0.2",
		"react-helmet": "^6.1.0",
		"react-icons": "^4.3.1",
		"react-infinite-scroll-component": "^6.1.0",
		"react-lazy-load": "^4.0.1",
		"react-otp-input": "^3.0.2",
		"react-quill": "^2.0.0",
		"react-redux": "^7.2.6",
		"react-responsive-carousel": "^3.2.23",
		"react-router-dom": "^6.2.1",
		"react-scripts": "^5.0.1",
		"react-snap": "^1.13.1",
		"redux": "^4.1.2",
		"redux-persist": "^6.0.0",
		"redux-thunk": "^2.4.1",
		"styled-components": "^5.3.3",
		"web-vitals": "^2.1.4"
	},
	"scripts": {
		"start": "react-scripts start",
		"build": "react-scripts build",
		"test": "react-scripts test",
		"eject": "react-scripts eject",
		"postbuild": "react-snap"
	},
	"reactSnap": {
		"include": [
			"/",
			"/collections/all",
			"/how-to-rent",
			"/how-to-lend",
			"/about-us",
			"/sustainability",
			"/contact-us",
			"/terms/rental-terms",
			"/terms/lender-agreement",
			"/terms/privacy-policy",
			"/search-product",
			"/blogs"
		],
		"inlineCss": true,
		"concurrency": 3,
		"timeout": 800000,
		"puppeteerArgs": [
			"--no-sandbox",
			"--disable-setuid-sandbox"
		],
		"puppeteerExecutablePath": "/opt/google/chrome/google-chrome"
	},
	"eslintConfig": {
		"extends": [
			"react-app",
			"react-app/jest"
		]
	},
	"browserslist": {
		"production": [
			">0.2%",
			"not dead",
			"not op_mini all"
		],
		"development": [
			"last 1 chrome version",
			"last 1 firefox version",
			"last 1 safari version"
		]
	}
}


./amplify.yml
version: 1
frontend:
  phases:
    preBuild:
      commands:
        - cd client
        - curl https://intoli.com/install-google-chrome.sh | bash
        - npm ci --force
    build:
      commands:
        - npm run build
  artifacts:
    baseDirectory: client/build
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

These are the complete logs

                                 # Starting phase: preBuild
                                 # Executing command: cd client
2023-05-20T09:44:27.427Z [INFO]: # Executing command: curl https://intoli.com/install-google-chrome.sh | bash
2023-05-20T09:44:27.432Z [WARNING]: % Total    %
2023-05-20T09:44:27.432Z [WARNING]: Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
                                    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2023-05-20T09:44:27.700Z [WARNING]: 0     0    0     0    0     0      0      0 --:--:-- --:--:--
2023-05-20T09:44:27.700Z [WARNING]: --:--:--     0
2023-05-20T09:44:28.272Z [WARNING]: 100  9526  100  9526    0     0
2023-05-20T09:44:28.273Z [WARNING]: 11331      0 --:--:-- --:--:-- --:--:-- 11326
2023-05-20T09:44:28.273Z [INFO]: Working in /tmp/google-chrome-installation
2023-05-20T09:44:28.276Z [INFO]: /tmp/google-chrome-installation /codebuild/output/src444902973/src/webapp/client
2023-05-20T09:44:28.276Z [INFO]: Configuring the Google Chrome repo in /etc/yum.repos.d/google-chrome.repo
2023-05-20T09:44:37.357Z [INFO]: Loaded plugins: ovl, priorities
2023-05-20T09:44:59.773Z [INFO]: Package wget-1.14-18.amzn2.1.x86_64 already installed and latest version
2023-05-20T09:44:59.775Z [INFO]: Nothing to do
2023-05-20T09:45:00.008Z [WARNING]: --2023-05-20 09:45:00--  https://dl.google.com/linux/linux_signing_key.pub
2023-05-20T09:45:00.013Z [WARNING]: Resolving dl.google.com (dl.google.com)...
2023-05-20T09:45:00.014Z [WARNING]: 142.251.42.14, 2404:6800:4009:826::200e
2023-05-20T09:45:00.014Z [WARNING]: Connecting to dl.google.com (dl.google.com)|142.251.42.14|:443...
2023-05-20T09:45:00.016Z [WARNING]: connected.
2023-05-20T09:45:00.079Z [WARNING]: HTTP request sent, awaiting response...
2023-05-20T09:45:00.190Z [WARNING]: 200 OK
2023-05-20T09:45:00.191Z [WARNING]: Length: 14605 (14K) [application/octet-stream]
                                    Saving to: ‘linux_signing_key.pub’
                                    0K .......... ..
2023-05-20T09:45:00.191Z [WARNING]: ..                                       100% 52.8M=0s
                                    2023-05-20 09:45:00 (52.8 MB/s) - ‘linux_signing_key.pub’ saved [14605/14605]
2023-05-20T09:45:00.236Z [INFO]: Attempting a direction installation with yum.
2023-05-20T09:45:00.346Z [INFO]: Loaded plugins: ovl, priorities
2023-05-20T09:45:01.501Z [INFO]: Resolving Dependencies
2023-05-20T09:45:01.502Z [INFO]: --> Running transaction check
2023-05-20T09:45:01.503Z [INFO]: ---> Package google-chrome-stable.x86_64 0:113.0.5672.126-1 will be installed
2023-05-20T09:45:01.520Z [INFO]: --> Processing Dependency: xdg-utils for package: google-chrome-stable-113.0.5672.126-1.x86_64
2023-05-20T09:45:35.732Z [INFO]: --> Processing Dependency: liberation-fonts for package: google-chrome-stable-113.0.5672.126-1.x86_64
2023-05-20T09:45:35.737Z [INFO]: --> Processing Dependency: libvulkan.so.1()(64bit) for package: google-chrome-stable-113.0.5672.126-1.x86_64
                                 --> Running transaction check
                                 ---> Package liberation-fonts.noarch 1:1.07.2-16.amzn2 will be installed
                                 --> Processing Dependency: liberation-serif-fonts = 1:1.07.2-16.amzn2 for package: 1:liberation-fonts-1.07.2-16.amzn2.noarch
2023-05-20T09:45:35.737Z [INFO]: --> Processing Dependency: liberation-sans-fonts = 1:1.07.2-16.amzn2 for package: 1:liberation-fonts-1.07.2-16.amzn2.noarch
2023-05-20T09:45:35.741Z [INFO]: --> Processing Dependency: liberation-narrow-fonts = 1:1.07.2-16.amzn2 for package: 1:liberation-fonts-1.07.2-16.amzn2.noarch
2023-05-20T09:45:35.743Z [INFO]: --> Processing Dependency: liberation-mono-fonts = 1:1.07.2-16.amzn2 for package: 1:liberation-fonts-1.07.2-16.amzn2.noarch
2023-05-20T09:45:35.745Z [INFO]: ---> Package vulkan.x86_64 0:1.0.61.1-2.amzn2 will be installed
2023-05-20T09:45:35.761Z [INFO]: --> Processing Dependency: vulkan-filesystem = 1.0.61.1-2.amzn2 for package: vulkan-1.0.61.1-2.amzn2.x86_64
2023-05-20T09:45:35.762Z [INFO]: ---> Package xdg-utils.noarch 0:1.1.0-0.17.20120809git.amzn2.0.1 will be installed
2023-05-20T09:45:35.763Z [INFO]: --> Processing Dependency: desktop-file-utils for package: xdg-utils-1.1.0-0.17.20120809git.amzn2.0.1.noarch
2023-05-20T09:45:35.765Z [INFO]: --> Running transaction check
2023-05-20T09:45:35.765Z [INFO]: ---> Package desktop-file-utils.x86_64 0:0.23-2.amzn2 will be installed
2023-05-20T09:45:35.767Z [INFO]: --> Processing Dependency: emacs-filesystem for package: desktop-file-utils-0.23-2.amzn2.x86_64
2023-05-20T09:45:35.769Z [INFO]: ---> Package liberation-mono-fonts.noarch 1:1.07.2-16.amzn2 will be installed
2023-05-20T09:45:35.770Z [INFO]: --> Processing Dependency: liberation-fonts-common = 1:1.07.2-16.amzn2 for package: 1:liberation-mono-fonts-1.07.2-16.amzn2.noarch
2023-05-20T09:45:35.771Z [INFO]: ---> Package liberation-narrow-fonts.noarch 1:1.07.2-16.amzn2 will be installed
2023-05-20T09:45:35.772Z [INFO]: ---> Package liberation-sans-fonts.noarch 1:1.07.2-16.amzn2 will be installed
2023-05-20T09:45:35.772Z [INFO]: ---> Package liberation-serif-fonts.noarch 1:1.07.2-16.amzn2 will be installed
2023-05-20T09:45:35.773Z [INFO]: ---> Package vulkan-filesystem.noarch 0:1.0.61.1-2.amzn2 will be installed
2023-05-20T09:45:35.774Z [INFO]: --> Running transaction check
                                 ---> Package emacs-filesystem.noarch 1:27.2-4.amzn2.0.4 will be installed
2023-05-20T09:45:35.774Z [INFO]: ---> Package liberation-fonts-common.noarch 1:1.07.2-16.amzn2 will be installed
2023-05-20T09:45:35.812Z [INFO]: --> Finished Dependency Resolution
2023-05-20T09:45:35.949Z [INFO]: Dependencies Resolved
2023-05-20T09:45:35.951Z [INFO]: ================================================================================
                                 Package                 Arch   Version                     Repository     Size
                                 ================================================================================
                                 Installing:
                                 google-chrome-stable    x86_64 113.0.5672.126-1            google-chrome  92 M
                                 Installing for dependencies:
                                 desktop-file-utils      x86_64 0.23-2.amzn2                amzn2-core     68 k
                                 emacs-filesystem        noarch 1:27.2-4.amzn2.0.4          amzn2-core     68 k
                                 liberation-fonts        noarch 1:1.07.2-16.amzn2           amzn2-core     13 k
                                 liberation-fonts-common noarch 1:1.07.2-16.amzn2           amzn2-core     27 k
                                 liberation-mono-fonts   noarch 1:1.07.2-16.amzn2           amzn2-core    228 k
                                 liberation-narrow-fonts noarch 1:1.07.2-16.amzn2           amzn2-core    202 k
                                 liberation-sans-fonts   noarch 1:1.07.2-16.amzn2           amzn2-core    279 k
                                 liberation-serif-fonts  noarch 1:1.07.2-16.amzn2           amzn2-core    298 k
                                 vulkan                  x86_64 1.0.61.1-2.amzn2            amzn2-core    1.2 M
                                 vulkan-filesystem       noarch 1.0.61.1-2.amzn2            amzn2-core    6.2 k
                                 xdg-utils               noarch 1.1.0-0.17.20120809git.amzn2.0.1
                                 amzn2-core     70 k
                                 Transaction Summary
                                 ================================================================================
                                 Install  1 Package (+11 Dependent packages)
2023-05-20T09:45:35.951Z [INFO]: Total download size: 94 M
2023-05-20T09:45:35.951Z [INFO]: Installed size: 310 M
                                 Downloading packages:
2023-05-20T09:45:39.945Z [INFO]: --------------------------------------------------------------------------------
2023-05-20T09:45:39.947Z [INFO]: Total                                               24 MB/s |  94 MB  00:03
2023-05-20T09:45:39.954Z [INFO]: Running transaction check
2023-05-20T09:45:39.971Z [INFO]: Running transaction test
2023-05-20T09:45:49.150Z [INFO]: Transaction test succeeded
2023-05-20T09:45:49.151Z [INFO]: Running transaction
2023-05-20T09:45:49.364Z [INFO]: Installing : 1:liberation-fonts-common-1.07.2-16.amzn2.noarch            1/12
2023-05-20T09:45:49.401Z [INFO]: 
                                 Installing : 1:liberation-mono-fonts-1.07.2-16.amzn2.noarch              2/12
2023-05-20T09:45:50.976Z [INFO]: 
                                 Installing : 1:liberation-narrow-fonts-1.07.2-16.amzn2.noarch            3/12
2023-05-20T09:45:51.029Z [INFO]: 
                                 Installing : 1:liberation-serif-fonts-1.07.2-16.amzn2.noarch             4/12
2023-05-20T09:45:51.077Z [INFO]: 
                                 Installing : 1:liberation-sans-fonts-1.07.2-16.amzn2.noarch              5/12
2023-05-20T09:45:51.102Z [INFO]: 
                                 Installing : 1:liberation-fonts-1.07.2-16.amzn2.noarch                   6/12
2023-05-20T09:45:51.129Z [INFO]: 
                                 Installing : vulkan-filesystem-1.0.61.1-2.amzn2.noarch                   7/12
2023-05-20T09:45:51.306Z [INFO]: 
                                 Installing : vulkan-1.0.61.1-2.amzn2.x86_64                              8/12
2023-05-20T09:45:57.666Z [INFO]: 
                                 Installing : 1:emacs-filesystem-27.2-4.amzn2.0.4.noarch                  9/12
2023-05-20T09:45:57.739Z [INFO]: 
                                 Installing : desktop-file-utils-0.23-2.amzn2.x86_64                     10/12
2023-05-20T09:45:57.766Z [INFO]: 
                                 Installing : xdg-utils-1.1.0-0.17.20120809git.amzn2.0.1.noarch          11/12
2023-05-20T09:46:06.095Z [INFO]: 
                                 Installing : google-chrome-stable-113.0.5672.126-1.x86_64               12/12
2023-05-20T09:46:07.697Z [INFO]: 
                                 Verifying  : 1:liberation-mono-fonts-1.07.2-16.amzn2.noarch              1/12
2023-05-20T09:46:07.735Z [INFO]: 
                                 Verifying  : xdg-utils-1.1.0-0.17.20120809git.amzn2.0.1.noarch           2/12
2023-05-20T09:46:07.746Z [INFO]: 
                                 Verifying  : desktop-file-utils-0.23-2.amzn2.x86_64                      3/12
2023-05-20T09:46:07.757Z [INFO]: 
                                 Verifying  : 1:liberation-fonts-common-1.07.2-16.amzn2.noarch            4/12
2023-05-20T09:46:07.765Z [INFO]: 
                                 Verifying  : 1:liberation-narrow-fonts-1.07.2-16.amzn2.noarch            5/12
2023-05-20T09:46:07.773Z [INFO]: 
                                 Verifying  : 1:liberation-fonts-1.07.2-16.amzn2.noarch                   6/12
2023-05-20T09:46:07.782Z [INFO]: 
                                 Verifying  : 1:liberation-serif-fonts-1.07.2-16.amzn2.noarch             7/12
2023-05-20T09:46:07.789Z [INFO]: 
                                 Verifying  : google-chrome-stable-113.0.5672.126-1.x86_64                8/12
2023-05-20T09:46:07.798Z [INFO]: 
                                 Verifying  : 1:emacs-filesystem-27.2-4.amzn2.0.4.noarch                  9/12
2023-05-20T09:46:07.808Z [INFO]: 
                                 Verifying  : vulkan-1.0.61.1-2.amzn2.x86_64                             10/12
2023-05-20T09:46:07.818Z [INFO]: 
                                 Verifying  : 1:liberation-sans-fonts-1.07.2-16.amzn2.noarch             11/12
2023-05-20T09:46:07.827Z [INFO]: 
                                 Verifying  : vulkan-filesystem-1.0.61.1-2.amzn2.noarch                  12/12
2023-05-20T09:46:07.876Z [INFO]: 
                                 Installed:
                                 google-chrome-stable.x86_64 0:113.0.5672.126-1
                                 Dependency Installed:
                                 desktop-file-utils.x86_64 0:0.23-2.amzn2
                                 emacs-filesystem.noarch 1:27.2-4.amzn2.0.4
                                 liberation-fonts.noarch 1:1.07.2-16.amzn2
                                 liberation-fonts-common.noarch 1:1.07.2-16.amzn2
                                 liberation-mono-fonts.noarch 1:1.07.2-16.amzn2
                                 liberation-narrow-fonts.noarch 1:1.07.2-16.amzn2
                                 liberation-sans-fonts.noarch 1:1.07.2-16.amzn2
                                 liberation-serif-fonts.noarch 1:1.07.2-16.amzn2
                                 vulkan.x86_64 0:1.0.61.1-2.amzn2
                                 vulkan-filesystem.noarch 0:1.0.61.1-2.amzn2
                                 xdg-utils.noarch 0:1.1.0-0.17.20120809git.amzn2.0.1
2023-05-20T09:46:07.876Z [INFO]: Complete!
2023-05-20T09:46:08.048Z [INFO]: Successfully installed Google Chrome!
2023-05-20T09:46:08.049Z [INFO]: # Executing command: npm ci --force
2023-05-20T09:46:08.287Z [WARNING]: npm
2023-05-20T09:46:08.287Z [WARNING]: WARN using --force Recommended protections disabled.
2023-05-20T09:46:17.862Z [WARNING]: npm
2023-05-20T09:46:17.863Z [WARNING]: WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
2023-05-20T09:46:18.608Z [WARNING]: npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
2023-05-20T09:46:18.736Z [WARNING]: npm WARN deprecated
2023-05-20T09:46:18.736Z [WARNING]: [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
2023-05-20T09:46:18.869Z [WARNING]: npm WARN deprecated
2023-05-20T09:46:18.869Z [WARNING]: [email protected]: Please use @jridgewell/sourcemap-codec instead
2023-05-20T09:46:19.651Z [WARNING]: npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2023-05-20T09:46:21.181Z [WARNING]: npm WARN deprecated
2023-05-20T09:46:21.183Z [WARNING]: [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
2023-05-20T09:46:21.654Z [WARNING]: npm WARN deprecated [email protected]: < 19.4.0 is no longer supported
2023-05-20T09:46:21.725Z [WARNING]: npm WARN deprecated
2023-05-20T09:46:21.725Z [WARNING]: [email protected]: < 19.4.0 is no longer supported
2023-05-20T09:46:42.043Z [INFO]: added 1643 packages, and audited 1644 packages in 34s
2023-05-20T09:46:42.044Z [INFO]: 255 packages are looking for funding
                                 run `npm fund` for details
2023-05-20T09:46:42.066Z [INFO]: 19 vulnerabilities (2 moderate, 14 high, 3 critical)
                                 To address issues that do not require attention, run:
                                 npm audit fix
                                 To address all issues (including breaking changes), run:
                                 npm audit fix --force
                                 Run `npm audit` for details.
2023-05-20T09:46:42.086Z [INFO]: # Completed phase: preBuild
2023-05-20T09:46:42.086Z [INFO]: # Starting phase: build
                                 # Executing command: npm run build
2023-05-20T09:46:42.465Z [INFO]: > [email protected] build
                                 > react-scripts build
2023-05-20T09:46:43.584Z [INFO]: Creating an optimized production build...
2023-05-20T09:47:07.507Z [WARNING]: [BABEL] Note: The code generator has deoptimised the styling of /codebuild/output/src444902973/src/webapp/client/src/assets/reason-cover.svg as it exceeds the max of 500KB.
2023-05-20T09:47:08.719Z [WARNING]: [BABEL] Note: The code generator has deoptimised the styling of undefined as it exceeds the max of 500KB.
2023-05-20T09:47:45.716Z [INFO]: Compiled with warnings.
2023-05-20T09:47:45.717Z [INFO]: [eslint]
                                 src/components/Cart/CartItem.js
                                 Line 7:8:  'theme' is defined but never used  no-unused-vars
                                 src/components/CouponItem.js
                                 Line 1:15:  'Button' is defined but never used  no-unused-vars
                                 src/components/Coupons.js
                                 Line 3:2:    'Button' is defined but never used          no-unused-vars
                                 Line 4:2:    'Drawer' is defined but never used          no-unused-vars
                                 Line 7:2:    'TextField' is defined but never used       no-unused-vars
                                 Line 10:17:  'useEffect' is defined but never used       no-unused-vars
                                 Line 11:10:  'AiOutlineClose' is defined but never used  no-unused-vars
                                 Line 14:8:   'CouponItem' is defined but never used      no-unused-vars
                                 src/components/Drawers/CouponDrawer.js
                                 Line 25:9:  'message' is assigned a value but never used  no-unused-vars
                                 Search for the keywords to learn more about each warning.
                                 To ignore, add // eslint-disable-next-line to the line before.
                                 File sizes after gzip:
2023-05-20T09:47:45.802Z [INFO]: 297.95 kB  build/static/js/main.7d31df2e.js
2023-05-20T09:47:45.802Z [INFO]: 77.08 kB   build/static/js/741.fa4bd8d0.chunk.js
                                 74.36 kB   build/static/js/914.46083a5f.chunk.js
                                 18.28 kB   build/static/js/242.e79d2131.chunk.js
                                 17.23 kB   build/static/js/704.662c2e27.chunk.js
                                 9.11 kB    build/static/js/441.69371a39.chunk.js
                                 9.07 kB    build/static/js/841.2e0aea81.chunk.js
                                 8.98 kB    build/static/js/896.42a2b41a.chunk.js
                                 8.66 kB    build/static/js/971.f78f9855.chunk.js
2023-05-20T09:47:45.803Z [INFO]: 7.41 kB    build/static/js/36.16ca4738.chunk.js
                                 7.4 kB     build/static/js/41.b01312ed.chunk.js
                                 6.43 kB    build/static/js/943.7245ae19.chunk.js
                                 6.07 kB    build/static/js/602.63f2b3a5.chunk.js
                                 5.78 kB    build/static/js/726.831e5719.chunk.js
                                 5.78 kB    build/static/js/494.70f00639.chunk.js
                                 5.68 kB    build/static/js/765.0e4b0fbf.chunk.js
                                 4.78 kB    build/static/css/914.1238b0f6.chunk.css
                                 4.71 kB    build/static/js/56.f1d36f51.chunk.js
                                 3.73 kB    build/static/js/815.ec9240d6.chunk.js
                                 2.8 kB     build/static/js/911.1889d92e.chunk.js
                                 2.61 kB    build/static/js/486.b36a9805.chunk.js
                                 2.4 kB     build/static/js/904.22606263.chunk.js
                                 2.38 kB    build/static/js/80.9df8873f.chunk.js
                                 2.33 kB    build/static/js/362.1793ac9e.chunk.js
                                 2.2 kB     build/static/js/921.ccf7d94f.chunk.js
                                 2.19 kB    build/static/js/464.2b75b35a.chunk.js
                                 2.09 kB    build/static/js/686.16c9dd50.chunk.js
                                 1.78 kB    build/static/js/408.643d0cd9.chunk.js
                                 1.78 kB    build/static/js/787.c4e7f8f9.chunk.js
                                 1.1 kB     build/static/css/486.b7b26562.chunk.css
                                 1.1 kB     build/static/css/765.b7b26562.chunk.css
                                 1.1 kB     build/static/css/911.b7b26562.chunk.css
                                 994 B      build/static/js/61.7b718958.chunk.js
                                 962 B      build/static/js/877.48be89d8.chunk.js
                                 799 B      build/static/css/main.091b22e8.css
                                 698 B      build/static/js/683.ed003afc.chunk.js
                                 681 B      build/static/js/763.94cea5fb.chunk.js
                                 577 B      build/static/js/373.aa917970.chunk.js
                                 The project was built assuming it is hosted at /.
2023-05-20T09:47:45.803Z [INFO]: You can control this with the homepage field in your package.json.
                                 The build folder is ready to be deployed.
                                 You may serve it with a static server:
                                 npm install -g serve
                                 serve -s build
                                 Find out more about deployment here:
                                 https://cra.link/deployment
2023-05-20T09:47:45.898Z [INFO]: > [email protected] postbuild
                                 > react-snap
2023-05-20T09:47:47.221Z [INFO]: ️️️💬  console.log at /404.html: JSHandle@array
2023-05-20T09:47:47.275Z [INFO]: ️️️💬  console.log at /collections/all: JSHandle@array
2023-05-20T09:47:47.316Z [INFO]: ️️️💬  console.log at /404.html: false
2023-05-20T09:47:47.317Z [INFO]: ️️️💬  console.log at /404.html: JSHandle@array
2023-05-20T09:47:47.326Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:47.326Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:47.327Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:47.332Z [INFO]: ️️️💬  console.log at /: 800
2023-05-20T09:47:47.375Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:47.375Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:47.474Z [INFO]: ️️️💬  console.log at /collections/all: true
2023-05-20T09:47:47.476Z [INFO]: ️️️💬  console.log at /collections/all: searchParams JSHandle@object
2023-05-20T09:47:47.481Z [INFO]: ️️️💬  console.log at /collections/all: JSHandle@array
2023-05-20T09:47:47.745Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:47.746Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:47.959Z [INFO]: ️️️💬  console.log at /collections/all: JSHandle@array
2023-05-20T09:47:48.450Z [INFO]: ️️️💬  console.log at /collections/all: JSHandle@array
2023-05-20T09:47:48.642Z [INFO]: ️️️💬  console.log at /collections/all: JSHandle@array
2023-05-20T09:47:48.873Z [INFO]: ️️️💬  console.log at /collections/all: JSHandle@array
2023-05-20T09:47:52.307Z [INFO]: ✅  crawled 1 out of 16 (/404.html)
2023-05-20T09:47:52.738Z [INFO]: ️️️💬  console.log at /how-to-rent: JSHandle@array
2023-05-20T09:47:52.761Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:52.764Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:52.865Z [INFO]: ️️️💬  console.log at /how-to-rent: false
2023-05-20T09:47:52.865Z [INFO]: ️️️💬  console.log at /how-to-rent: JSHandle@array
2023-05-20T09:47:55.999Z [INFO]: ✅  crawled 2 out of 65 (/how-to-rent)
2023-05-20T09:47:56.500Z [INFO]: ️️️💬  console.log at /how-to-lend: JSHandle@array
2023-05-20T09:47:57.141Z [INFO]: ️️️💬  console.log at /how-to-lend: false
2023-05-20T09:47:57.142Z [INFO]: ️️️💬  console.log at /how-to-lend: JSHandle@array
2023-05-20T09:47:57.147Z [INFO]: ✅  crawled 3 out of 65 (/collections/all)
2023-05-20T09:47:57.462Z [INFO]: ️️️💬  console.log at /about-us: JSHandle@array
2023-05-20T09:47:57.541Z [INFO]: ️️️💬  console.log at /about-us: false
                                 ️️️💬  console.log at /about-us: JSHandle@array
2023-05-20T09:47:57.756Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:57.756Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:47:59.353Z [INFO]: ✅  crawled 4 out of 65 (/how-to-lend)
2023-05-20T09:47:59.630Z [INFO]: ️️️💬  console.log at /sustainability: JSHandle@array
2023-05-20T09:47:59.706Z [INFO]: ️️️💬  console.log at /sustainability: false
2023-05-20T09:47:59.710Z [INFO]: ️️️💬  console.log at /sustainability: JSHandle@array
2023-05-20T09:48:00.066Z [INFO]: ✅  crawled 5 out of 65 (/about-us)
2023-05-20T09:48:00.333Z [INFO]: ️️️💬  console.log at /contact-us: JSHandle@array
2023-05-20T09:48:00.425Z [INFO]: ️️️💬  console.log at /contact-us: false
2023-05-20T09:48:00.426Z [INFO]: ️️️💬  console.log at /contact-us: JSHandle@array
2023-05-20T09:48:02.227Z [INFO]: ✅  crawled 6 out of 68 (/sustainability)
2023-05-20T09:48:02.546Z [INFO]: ️️️💬  console.log at /terms/rental-terms: JSHandle@array
2023-05-20T09:48:02.622Z [INFO]: ️️️💬  console.log at /terms/rental-terms: true
                                 ️️️💬  console.log at /terms/rental-terms: JSHandle@array
2023-05-20T09:48:02.760Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:48:02.761Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:48:02.969Z [INFO]: ✅  crawled 7 out of 68 (/contact-us)
2023-05-20T09:48:03.234Z [INFO]: ️️️💬  console.log at /terms/lender-agreement: JSHandle@array
2023-05-20T09:48:03.310Z [INFO]: ️️️💬  console.log at /terms/lender-agreement: true
2023-05-20T09:48:03.312Z [INFO]: ️️️💬  console.log at /terms/lender-agreement: JSHandle@array
2023-05-20T09:48:05.020Z [INFO]: ✅  crawled 8 out of 68 (/terms/rental-terms)
2023-05-20T09:48:05.389Z [INFO]: ️️️💬  console.log at /terms/privacy-policy: JSHandle@array
2023-05-20T09:48:05.462Z [INFO]: ️️️💬  console.log at /terms/privacy-policy: true
2023-05-20T09:48:05.463Z [INFO]: ️️️💬  console.log at /terms/privacy-policy: JSHandle@array
2023-05-20T09:48:05.764Z [INFO]: ✅  crawled 9 out of 68 (/terms/lender-agreement)
2023-05-20T09:48:05.973Z [INFO]: ️️️💬  console.log at /search-product: JSHandle@array
2023-05-20T09:48:06.052Z [INFO]: ️️️💬  console.log at /search-product: false
2023-05-20T09:48:06.053Z [INFO]: ️️️💬  console.log at /search-product: JSHandle@array
2023-05-20T09:48:07.754Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:48:07.755Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:48:08.013Z [INFO]: ✅  crawled 10 out of 68 (/terms/privacy-policy)
2023-05-20T09:48:08.739Z [INFO]: ✅  crawled 11 out of 68 (/search-product)
2023-05-20T09:48:09.046Z [INFO]: ️️️💬  console.log at /cart: JSHandle@array
2023-05-20T09:48:09.127Z [INFO]: ️️️💬  console.log at /cart: false
2023-05-20T09:48:09.131Z [INFO]: ️️️💬  console.log at /cart: JSHandle@array
2023-05-20T09:48:09.214Z [INFO]: ️️️⚠️  warning at /: got 400 HTTP code for https://api.therentalstudio.com/user/getUserCoupons
2023-05-20T09:48:09.215Z [INFO]: ️️️💬  console.log at /cart: Failed to load resource: the server responded with a status of 400 (Bad Request)
2023-05-20T09:48:11.449Z [INFO]: 🔥  pageerror at /cart: Error: Invalid token. Access denied!
                                 at http://localhost:45678/static/js/main.7d31df2e.js:2:99078 (store/actions/Order.js:47:9)
                                 at call (../node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js:44:16)
                                 at tryCatch (../node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js:125:21)
                                 at _invoke (../node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js:69:20)
                                 at arg (../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:3:24)
2023-05-20T09:48:12.756Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:48:12.758Z [INFO]: ️️️💬  console.log at /: JSHandle@node
2023-05-20T09:48:13.598Z [INFO]: ✅  crawled 77 out of 78 (/blogs)
2023-05-20T09:48:14.259Z [INFO]: ✅  crawled 78 out of 78 (/)
2023-05-20T09:48:14.298Z [WARNING]: 
2023-05-20T09:48:14.322Z [ERROR]: !!! Build failed
2023-05-20T09:48:14.322Z [ERROR]: !!! Non-Zero Exit Code detected
2023-05-20T09:48:14.323Z [INFO]: # Starting environment caching...
2023-05-20T09:48:14.323Z [INFO]: # Uploading environment cache artifact...
2023-05-20T09:48:14.390Z [INFO]: # Uploaded environment cache artifact
2023-05-20T09:48:14.390Z [INFO]: # Environment caching completed
Terminating logging...
@Abhishek1350
Copy link

For me its:
Error: Failed to launch chrome! /codebuild/output/src323254157/src/outdoor-frontend/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

@mario8a
Copy link

mario8a commented Nov 8, 2023

For me its: Error: Failed to launch chrome! /codebuild/output/src323254157/src/outdoor-frontend/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

I Solve that error with this code in your package.json

"reactSnap": {
    "source": "./dist",
    "puppeteerArgs": [
      "--no-sandbox",
      "--disable-setuid-sandbox"
    ]
 },

But now i have a new error
2023-11-08T00:05:40.792Z [INFO]: 🔥 pageerror at /: SyntaxError: Unexpected token '?'
2023-11-08T00:05:41.745Z [INFO]: ️️️💬 console.log at /: Failed to load resource: the server responded with a status of 403 ()
2023-11-08T00:05:42.808Z [INFO]: ✅ crawled 1 out of 1 (/)

@Abhishek1350
Copy link

For me its: Error: Failed to launch chrome! /codebuild/output/src323254157/src/outdoor-frontend/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

I Solve that error with this code in your package.json

"reactSnap": {
    "source": "./dist",
    "puppeteerArgs": [
      "--no-sandbox",
      "--disable-setuid-sandbox"
    ]
 },

But now i have a new error 2023-11-08T00:05:40.792Z [INFO]: 🔥 pageerror at /: SyntaxError: Unexpected token '?' 2023-11-08T00:05:41.745Z [INFO]: ️️️💬 console.log at /: Failed to load resource: the server responded with a status of 403 () 2023-11-08T00:05:42.808Z [INFO]: ✅ crawled 1 out of 1 (/)

"reactSnap": { "puppeteerArgs": ["--no-sandbox", "--disable-setuid-sandbox"] },

By adding this is working fine when I deploy to vercel. But have same problem with AWS Amplify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants