chore(deps): update dependency rehype to v13 #1639
Open
ci.jenkins.io / Jenkins
failed
Mar 3, 2024 in 1m 14s
Build: error in 'sh' step
Build / Shell Script
Error in sh
step, with arguments yarn build
.
script returned exit code 1
Build log
[2024-03-03T12:52:01.966Z] + yarn build
[2024-03-03T12:52:07.077Z] [@jenkins-cd/jenkins-plugin-site]: success compile gatsby files - 1.090s
[2024-03-03T12:52:07.077Z] [@jenkins-cd/jenkins-plugin-site]: success load gatsby config - 0.040s
[2024-03-03T12:52:07.479Z] [@jenkins-cd/jenkins-plugin-site]: warning Plugin @halkeye/gatsby-rehype-rewrite-ids is not compatible with your gatsby version 5.13.3 - It requires gatsby@^3.0.0 || ^4.0.0
[2024-03-03T12:52:07.480Z] [@jenkins-cd/jenkins-plugin-site]: error require() of ES Module /home/jenkins/agent/workspace/Infra_plugin-site_PR-1639/node_modules/rehype/index.js from /home/jenkins/agent/workspace/Infra_plugin-site_PR-1639/node_modules/@halkeye/gatsby-rehype-autolink-headers/index.js not supported.
[2024-03-03T12:52:07.480Z] [@jenkins-cd/jenkins-plugin-site]: Instead change the require of /home/jenkins/agent/workspace/Infra_plugin-site_PR-1639/node_modules/rehype/index.js in /home/jenkins/agent/workspace/Infra_plugin-site_PR-1639/node_modules/@halkeye/gatsby-rehype-autolink-headers/index.js to a dynamic import() which is available in all CommonJS modules. (plugins)
[2024-03-03T12:52:07.480Z] [@jenkins-cd/jenkins-plugin-site]:
[2024-03-03T12:52:07.480Z] [@jenkins-cd/jenkins-plugin-site]:
[2024-03-03T12:52:07.480Z] [@jenkins-cd/jenkins-plugin-site]: Error: [ERR_REQUIRE_ESM]: require() of ES Module /home/jenkins/agent/workspace /Infra_plugin-site_PR-1639/node_modules/rehype/index.js from /home/jenkins/age nt/workspace/Infra_plugin-site_PR-1639/node_modules/@halkeye/gatsby-rehype-aut olink-headers/index.js not supported.
[2024-03-03T12:52:07.481Z] [@jenkins-cd/jenkins-plugin-site]: Instead change the require of /home/jenkins/agent/workspace/Infra_plugin-site_ PR-1639/node_modules/rehype/index.js in /home/jenkins/agent/workspace/Infra_pl ugin-site_PR-1639/node_modules/@halkeye/gatsby-rehype-autolink-headers/index.j s to a dynamic import() which is available in all CommonJS modules.
[2024-03-03T12:52:07.481Z] [@jenkins-cd/jenkins-plugin-site]:
[2024-03-03T12:52:07.481Z] [@jenkins-cd/jenkins-plugin-site]: - index.js:6 Object.<anonymous>
[2024-03-03T12:52:07.481Z] [@jenkins-cd/jenkins-plugin-site]: [Infra_plugin-site_PR-1639]/[@halkeye]/gatsby-rehype-autolink-headers/index. js:6:16
[2024-03-03T12:52:07.482Z] [@jenkins-cd/jenkins-plugin-site]:
[2024-03-03T12:52:07.482Z] [@jenkins-cd/jenkins-plugin-site]: - validate.js:107 async Object.method
[2024-03-03T12:52:07.482Z] [@jenkins-cd/jenkins-plugin-site]: [Infra_plugin-site_PR-1639]/[gatsby]/dist/bootstrap/load-plugins/validate.js :107:30
[2024-03-03T12:52:07.482Z] [@jenkins-cd/jenkins-plugin-site]:
[2024-03-03T12:52:07.482Z] [@jenkins-cd/jenkins-plugin-site]:
[2024-03-03T12:52:07.483Z] [@jenkins-cd/jenkins-plugin-site]: not finished load plugins - 0.364s
[2024-03-03T12:52:08.084Z] The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[2024-03-03T12:52:08.085Z] Failed with errors in 4s 837ms
Details
- Declarative: Checkout SCM (28 sec)
- Check for typos (5.1 sec)
- Install dependencies (27 sec)
- Build (7.2 sec)
Error: script returned exit code 1 - Check build (0.8 sec)
- Lint and Test (0.86 sec)
- Deploy to preview site (0.81 sec)
- Build production (0.8 sec)
- Deploy to production (1.5 sec)