parcel-bundler / watcher

👀 A native C++ Node module for querying and subscribing to filesystem events
MIT License
653 stars 44 forks source link

AWS Amplify build error #160

Open ergunpp opened 10 months ago

ergunpp commented 10 months ago

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' (https://github.com/sideway/joi/issues/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]:   Error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watc her-linux-x64-glibc. Please ensure it is installed (don't use --no-optional wh en installing with npm). Otherwise it is possible we don't support your platfo rm yet. If this is the case, please report an issue to https://github.com/parc el-bundler/watcher.    - index.js:23 Object.   [chefschoice-V2023]/[@parcel]/watcher/index.js:23:13    - loader:1105 Module._compile   node:internal/modules/cjs/loader:1105:14    - loader:1159 Object.Module._extensions..js   node:internal/modules/cjs/loader:1159:10    - loader:981 Module.load   node:internal/modules/cjs/loader:981:32    - loader:827 Function.Module._load   node:internal/modules/cjs/loader:827:12    - loader:1005 Module.require   node:internal/modules/cjs/loader:1005:19    - helpers:102 require   node:internal/modules/cjs/helpers:102:18    - index.js:7 Object.   [chefschoice-V2023]/[@parcel]/fs/lib/index.js:7:28    - loader:1105 Module._compile   node:internal/modules/cjs/loader:1105:14    - loader:1159 Object.Module._extensions..js   node:internal/modules/cjs/loader:1159:10    - loader:981 Module.load   node:internal/modules/cjs/loader:981:32    - loader:827 Function.Module._load   node:internal/modules/cjs/loader:827:12    - loader:1005 Module.require   node:internal/modules/cjs/loader:1005:19    - helpers:102 require   node:internal/modules/cjs/helpers:102:18    - LMDBCache.js:49 _fs   [chefschoice-V2023]/[@parcel]/cache/lib/LMDBCache.js:49:16    - LMDBCache.js:79 new LMDBCache   [chefschoice-V2023]/[@parcel]/cache/lib/LMDBCache.js:79:20    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 commented 8 months ago

Having the same issue. Any luck?

mcfarljw commented 7 months ago

https://github.com/parcel-bundler/watcher/issues/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.