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

AWS Amplify build error #160

Open
ergunpp opened this issue Nov 15, 2023 · 2 comments
Open

AWS Amplify build error #160

ergunpp opened this issue Nov 15, 2023 · 2 comments

Comments

@ergunpp
Copy link

ergunpp commented Nov 15, 2023

Hi,
I am using gatsbyjs for a project and deploy it using aws/amplify.
When building I get the following error.
Does anybody konow how to solve it?

Starting phase: preBuild

                             # Executing command: npm i --package-lock-only

2023-11-15T17:20:34.345Z [WARNING]: npm WARN ERESOLVE overriding peer dependency
2023-11-15T17:20:34.346Z [WARNING]: npm WARN While resolving: react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN react@"^18.2.0" from the root project
npm WARN 12 more (@contentful/rich-text-react-renderer, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"0.0.0-experimental-c8b778b7f-20220825" from react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
npm WARN node_modules/react-server-dom-webpack
npm WARN react-server-dom-webpack@"0.0.0-experimental-c8b778b7f-20220825" from gatsby@5.12.9
npm WARN node_modules/gatsby
npm WARN
npm WARN Conflicting peer dependency: react@0.0.0-experimental-c8b778b7f-20220825
npm WARN node_modules/react
npm WARN peer react@"0.0.0-experimental-c8b778b7f-20220825" from react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
npm WARN node_modules/react-server-dom-webpack
npm WARN react-server-dom-webpack@"0.0.0-experimental-c8b778b7f-20220825" from gatsby@5.12.9
npm WARN node_modules/gatsby
2023-11-15T17:20:40.247Z [INFO]: up to date, audited 1420 packages in 8s
2023-11-15T17:20:40.250Z [INFO]: 254 packages are looking for funding
run npm fund for details
2023-11-15T17:20:40.407Z [INFO]: 15 moderate severity vulnerabilities
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-11-15T17:20:40.420Z [INFO]: # Executing command: npm ci
2023-11-15T17:20:41.608Z [WARNING]: npm
2023-11-15T17:20:41.609Z [WARNING]: WARN ERESOLVE overriding peer dependency
2023-11-15T17:20:41.609Z [WARNING]: npm
2023-11-15T17:20:41.610Z [WARNING]: WARN While resolving: react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
npm WARN Found: react@18.2.0
npm
2023-11-15T17:20:41.610Z [WARNING]: WARN node_modules/react
npm WARN
2023-11-15T17:20:41.610Z [WARNING]: react@"^18.2.0" from the root project
npm WARN 12 more (@contentful/rich-text-react-renderer, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"0.0.0-experimental-c8b778b7f-20220825" from react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
2023-11-15T17:20:41.610Z [WARNING]: npm WARN node_modules/react-server-dom-webpack
npm WARN react-server-dom-webpack@"0.0.0-experimental-c8b778b7f-20220825" from gatsby@5.12.9
npm WARN node_modules/gatsby
npm WARN
2023-11-15T17:20:41.610Z [WARNING]:
npm WARN Conflicting peer dependency: react@0.0.0-experimental-c8b778b7f-20220825
npm WARN node_modules/react
npm WARN peer react@"0.0.0-experimental-c8b778b7f-20220825" from react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825
npm WARN node_modules/react-server-dom-webpack
npm WARN react-server-dom-webpack@"0.0.0-experimental-c8b778b7f-20220825" from gatsby@5.12.9
npm WARN node_modules/gatsby
2023-11-15T17:20:57.972Z [WARNING]: npm
2023-11-15T17:20:57.975Z [WARNING]: WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
2023-11-15T17:21:11.566Z [WARNING]: npm
2023-11-15T17:21:11.569Z [WARNING]: WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
2023-11-15T17:21:11.578Z [WARNING]: npm
2023-11-15T17:21:11.578Z [WARNING]: WARN deprecated @hapi/address@2.1.4: This version has been deprecated and is no longer supported or maintained
2023-11-15T17:21:11.895Z [WARNING]: npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
2023-11-15T17:21:11.949Z [WARNING]: npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
2023-11-15T17:21:12.991Z [WARNING]: npm WARN deprecated
2023-11-15T17:21:12.992Z [WARNING]: @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
2023-11-15T17:21:12.994Z [WARNING]: npm
2023-11-15T17:21:12.995Z [WARNING]: WARN deprecated @babel/plugin-proposal-numeric-separator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
2023-11-15T17:21:13.019Z [WARNING]: npm WARN deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
2023-11-15T17:21:13.042Z [WARNING]: npm WARN deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
2023-11-15T17:21:13.073Z [WARNING]: npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
2023-11-15T17:21:13.489Z [WARNING]: npm WARN deprecated @hapi/joi@15.1.1: joi is leaving the @Hapi organization and moving back to 'joi' (hapijs/joi#2411)
2023-11-15T17:21:59.674Z [INFO]: added 1414 packages, and audited 1415 packages in 1m
2023-11-15T17:21:59.676Z [INFO]: 253 packages are looking for funding
run npm fund for details
2023-11-15T17:21:59.899Z [INFO]: 15 moderate severity vulnerabilities
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-11-15T17:21:59.943Z [INFO]: # Completed phase: preBuild
# Starting phase: build
# Executing command: npm run build
2023-11-15T17:22:00.213Z [INFO]: > gatsby-starter-hello-world@0.1.0 build
> gatsby build
2023-11-15T17:22:02.030Z [WARNING]: error There was an unhandled error during compilation for /codebuild/output/src579534664/src/chefschoice-V2023. Please run the command with the --verbose flag again.
No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-linux-x64-glibc. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.
2023-11-15T17:22:02.062Z [INFO]: �[0m
�[0m �[0m�[97m�[41mError�[0m�[37m�[41m:�[0m�[37m�[41m �[0m�[97m�[41mNo prebuild or local build of @parcel/watcher found. Tried @parcel/watc�[0m �[0m�[97m�[41mher-linux-x64-glibc. Please ensure it is installed (don't use --no-optional wh�[0m �[0m�[97m�[41men installing with npm). Otherwise it is possible we don't support your platfo�[0m �[0m�[97m�[41mrm yet. If this is the case, please report an issue to https://github.com/parc�[0m �[0m�[97m�[41mel-bundler/watcher.�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mindex.js�[0m�[90m:�[0m�[93m23�[0m�[37m �[0m�[37mObject.�[0m
�[0m �[0m �[0m�[90m[chefschoice-V2023]/[@parcel]/watcher/index.js:23:13�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m1105�[0m�[37m �[0m�[37mModule._compile�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:1105:14�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m1159�[0m�[37m �[0m�[37mObject.Module._extensions..js�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:1159:10�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m981�[0m�[37m �[0m�[37mModule.load�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:981:32�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m827�[0m�[37m �[0m�[37mFunction.Module._load�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:827:12�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m1005�[0m�[37m �[0m�[37mModule.require�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:1005:19�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mhelpers�[0m�[90m:�[0m�[93m102�[0m�[37m �[0m�[37mrequire�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/helpers:102:18�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mindex.js�[0m�[90m:�[0m�[93m7�[0m�[37m �[0m�[37mObject.�[0m
�[0m �[0m �[0m�[90m[chefschoice-V2023]/[@parcel]/fs/lib/index.js:7:28�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m1105�[0m�[37m �[0m�[37mModule._compile�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:1105:14�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m1159�[0m�[37m �[0m�[37mObject.Module._extensions..js�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:1159:10�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m981�[0m�[37m �[0m�[37mModule.load�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:981:32�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m827�[0m�[37m �[0m�[37mFunction.Module._load�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:827:12�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mloader�[0m�[90m:�[0m�[93m1005�[0m�[37m �[0m�[37mModule.require�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/loader:1005:19�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mhelpers�[0m�[90m:�[0m�[93m102�[0m�[37m �[0m�[37mrequire�[0m
�[0m �[0m �[0m�[90mnode:internal/modules/cjs/helpers:102:18�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mLMDBCache.js�[0m�[90m:�[0m�[93m49�[0m�[37m �[0m�[37m_fs�[0m
�[0m �[0m �[0m�[90m[chefschoice-V2023]/[@parcel]/cache/lib/LMDBCache.js:49:16�[0m
�[0m �[0m
�[0m �[0m�[90m-�[0m �[0m�[93mLMDBCache.js�[0m�[90m:�[0m�[93m79�[0m�[37m �[0m�[37mnew LMDBCache�[0m
�[0m �[0m �[0m�[90m[chefschoice-V2023]/[@parcel]/cache/lib/LMDBCache.js:79:20�[0m
�[0m �[0m
�[0m
2023-11-15T17:22:02.064Z [INFO]: not finished compile gatsby files - 0.080s
2023-11-15T17:22:03.406Z [ERROR]: !!! Build failed
2023-11-15T17:22:03.488Z [ERROR]: !!! Non-Zero Exit Code detected
2023-11-15T17:22:03.489Z [INFO]: # Starting environment caching...
2023-11-15T17:22:03.489Z [INFO]: # Environment caching completed
Terminating logging...

@storcswap
Copy link

Having the same issue. Any luck?

@mcfarljw
Copy link

#156 is the cause of the issue and it looks like AWS Amplify my have patched it be downgrading this package version, not sure if they've released the patch yet though.

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