Yarn install fails at root@workspace:

➤ YN0007: │ root@workspace:. must be built because it never has been before or the last one failed
➤ YN0009: │ root@workspace:. couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/3d/576s_9xd0fn73g9zn9f6cxf40000gn/T/xfs-70972dbe/build.log)
➤ YN0000: └ Completed in 28s 754ms
➤ YN0000: Failed with errors in 30s 985ms
The log file /private/var/folders/3d/576s_9xd0fn73g9zn9f6cxf40000gn/T/xfs-70972dbe/build.log is here
# This file contains the result of Yarn building a package (root@workspace:.)
# Script name: postinstall

[17:05:20] Using gulpfile ~/data/work/joplin/gulpfile.js
[17:05:20] Starting 'build'...
> yarn [ 'run', 'buildParallel' ]
➤ YN0000: [joplin]: Process started
➤ YN0000: [@joplin/fork-htmlparser2]: Process started
➤ YN0000: [joplin]: [17:05:23] Using gulpfile ~/data/work/joplin/packages/app-cli/gulpfile.js
➤ YN0000: [joplin]: [17:05:23] Starting 'build'...
➤ YN0000: [joplin]: [17:05:23] Starting 'prepareBuild'...
➤ YN0000: [joplin]: [17:05:23] Finished 'prepareBuild' after 127 ms
➤ YN0000: [joplin]: [17:05:23] Finished 'build' after 129 ms
➤ YN0000: [joplin]: Process exited (exit code 0), completed in 1s 548ms
➤ YN0000: [@joplin/pdf-viewer]: Process started
➤ YN0000: [@joplin/fork-htmlparser2]: src/FeedHandler.ts(56,21): error TS2345: Argument of type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domutils/node_modules/domhandler/lib/node").Element' is not assignable to parameter of type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domhandler/lib/node").Element'.
➤ YN0000: [@joplin/fork-htmlparser2]:   Types of property 'type' are incompatible.
➤ YN0000: [@joplin/fork-htmlparser2]:     Type 'ElementType' is not assignable to type 'ElementType.Script | ElementType.Style | ElementType.Tag'.
➤ YN0000: [@joplin/fork-htmlparser2]: src/FeedHandler.ts(78,25): error TS2345: Argument of type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domutils/node_modules/domhandler/lib/node").Element' is not assignable to parameter of type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domhandler/lib/node").Element'.
➤ YN0000: [@joplin/fork-htmlparser2]: src/FeedHandler.ts(122,21): error TS2345: Argument of type '(item: Element) => FeedItem' is not assignable to parameter of type '(value: Element, index: number, array: Element[]) => FeedItem'.
➤ YN0000: [@joplin/fork-htmlparser2]:   Types of parameters 'item' and 'value' are incompatible.
➤ YN0000: [@joplin/fork-htmlparser2]:     Type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domutils/node_modules/domhandler/lib/node").Element' is not assignable to type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domhandler/lib/node").Element'.
➤ YN0000: [@joplin/fork-htmlparser2]: Process exited (exit code 2), completed in 6s 31ms
➤ YN0000: [@joplin/react-native-saf-x]: Process started
➤ YN0000: [@joplin/react-native-saf-x]: Process exited (exit code 0), completed in 2s 5ms
➤ YN0000: [@joplin/server]: Process started
➤ YN0000: [@joplin/server]: [17:05:31] Using gulpfile ~/data/work/joplin/packages/server/gulpfile.js
➤ YN0000: [@joplin/server]: [17:05:31] Starting 'build'...
➤ YN0000: [@joplin/server]: [17:05:31] Starting 'compilePackageInfo'...
➤ YN0000: [@joplin/server]: Generated /Users/tessus/data/work/joplin/packages/server/dist/packageInfo.js
➤ YN0000: [@joplin/server]: [17:05:31] Finished 'compilePackageInfo' after 59 ms
➤ YN0000: [@joplin/server]: [17:05:31] Finished 'build' after 61 ms
➤ YN0000: [@joplin/server]: Process exited (exit code 0), completed in 1s 215ms
➤ YN0000: [@joplin/turndown]: Process started
➤ YN0000: [@joplin/turndown]:
➤ YN0000: [@joplin/turndown]: src/turndown.js → lib/turndown.cjs.js...
➤ YN0000: [@joplin/turndown]: created lib/turndown.cjs.js in 228ms
➤ YN0000: [@joplin/turndown]: Process exited (exit code 0), completed in 0s 940ms
➤ YN0000: [@joplin/turndown-plugin-gfm]: Process started
➤ YN0000: [@joplin/turndown-plugin-gfm]:
➤ YN0000: [@joplin/turndown-plugin-gfm]: src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
➤ YN0000: [@joplin/turndown-plugin-gfm]: created lib/turndown-plugin-gfm.cjs.js in 47ms
➤ YN0000: [@joplin/turndown-plugin-gfm]: Process exited (exit code 0), completed in 0s 690ms
➤ YN0000: [@joplin/pdf-viewer]: asset main.js 1.66 MiB [compared for emit] [minimized] [big] (name: main) 1 related asset
➤ YN0000: [@joplin/pdf-viewer]: asset pdf.worker.js 1010 KiB [compared for emit] [minimized] [big] (name: pdf.worker) 1 related asset
➤ YN0000: [@joplin/pdf-viewer]: orphan modules 129 KiB [orphan] 5 modules
➤ YN0000: [@joplin/pdf-viewer]: runtime modules 972 bytes 5 modules
➤ YN0000: [@joplin/pdf-viewer]: modules by path ./ 4.03 MiB 59 modules
➤ YN0000: [@joplin/pdf-viewer]: modules by path ../lib/ 14.3 KiB
➤ YN0000: [@joplin/pdf-viewer]:   ../lib/shim.ts 13.7 KiB [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]:   ../lib/hooks/useAsyncEffect.ts 682 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: fs (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: canvas (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: zlib (ignored) 15 bytes [optional] [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: http (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: https (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: url (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: webpack 5.74.0 compiled successfully in 19612 ms
➤ YN0000: [@joplin/pdf-viewer]: Process exited (exit code 0), completed in 21s 181ms
➤ YN0000: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
➤ YN0000: Failed with errors in 22s 733ms
[17:05:44] 'build' errored after 25 s
[17:05:44] Error: Command failed with exit code 1: yarn run buildParallel
➤ YN0000: [joplin]: Process started
➤ YN0000: [@joplin/fork-htmlparser2]: Process started
➤ YN0000: [joplin]: [17:05:23] Using gulpfile ~/data/work/joplin/packages/app-cli/gulpfile.js
➤ YN0000: [joplin]: [17:05:23] Starting 'build'...
➤ YN0000: [joplin]: [17:05:23] Starting 'prepareBuild'...
➤ YN0000: [joplin]: [17:05:23] Finished 'prepareBuild' after 127 ms
➤ YN0000: [joplin]: [17:05:23] Finished 'build' after 129 ms
➤ YN0000: [joplin]: Process exited (exit code 0), completed in 1s 548ms
➤ YN0000: [@joplin/pdf-viewer]: Process started
➤ YN0000: [@joplin/fork-htmlparser2]: src/FeedHandler.ts(56,21): error TS2345: Argument of type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domutils/node_modules/domhandler/lib/node").Element' is not assignable to parameter of type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domhandler/lib/node").Element'.
➤ YN0000: [@joplin/fork-htmlparser2]:   Types of property 'type' are incompatible.
➤ YN0000: [@joplin/fork-htmlparser2]:     Type 'ElementType' is not assignable to type 'ElementType.Script | ElementType.Style | ElementType.Tag'.
➤ YN0000: [@joplin/fork-htmlparser2]: src/FeedHandler.ts(78,25): error TS2345: Argument of type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domutils/node_modules/domhandler/lib/node").Element' is not assignable to parameter of type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domhandler/lib/node").Element'.
➤ YN0000: [@joplin/fork-htmlparser2]: src/FeedHandler.ts(122,21): error TS2345: Argument of type '(item: Element) => FeedItem' is not assignable to parameter of type '(value: Element, index: number, array: Element[]) => FeedItem'.
➤ YN0000: [@joplin/fork-htmlparser2]:   Types of parameters 'item' and 'value' are incompatible.
➤ YN0000: [@joplin/fork-htmlparser2]:     Type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domutils/node_modules/domhandler/lib/node").Element' is not assignable to type 'import("/Users/tessus/data/work/joplin/packages/fork-htmlparser2/node_modules/domhandler/lib/node").Element'.
➤ YN0000: [@joplin/fork-htmlparser2]: Process exited (exit code 2), completed in 6s 31ms
➤ YN0000: [@joplin/react-native-saf-x]: Process started
➤ YN0000: [@joplin/react-native-saf-x]: Process exited (exit code 0), completed in 2s 5ms
➤ YN0000: [@joplin/server]: Process started
➤ YN0000: [@joplin/server]: [17:05:31] Using gulpfile ~/data/work/joplin/packages/server/gulpfile.js
➤ YN0000: [@joplin/server]: [17:05:31] Starting 'build'...
➤ YN0000: [@joplin/server]: [17:05:31] Starting 'compilePackageInfo'...
➤ YN0000: [@joplin/server]: Generated /Users/tessus/data/work/joplin/packages/server/dist/packageInfo.js
➤ YN0000: [@joplin/server]: [17:05:31] Finished 'compilePackageInfo' after 59 ms
➤ YN0000: [@joplin/server]: [17:05:31] Finished 'build' after 61 ms
➤ YN0000: [@joplin/server]: Process exited (exit code 0), completed in 1s 215ms
➤ YN0000: [@joplin/turndown]: Process started
➤ YN0000: [@joplin/turndown]:
➤ YN0000: [@joplin/turndown]: src/turndown.js → lib/turndown.cjs.js...
➤ YN0000: [@joplin/turndown]: created lib/turndown.cjs.js in 228ms
➤ YN0000: [@joplin/turndown]: Process exited (exit code 0), completed in 0s 940ms
➤ YN0000: [@joplin/turndown-plugin-gfm]: Process started
➤ YN0000: [@joplin/turndown-plugin-gfm]:
➤ YN0000: [@joplin/turndown-plugin-gfm]: src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
➤ YN0000: [@joplin/turndown-plugin-gfm]: created lib/turndown-plugin-gfm.cjs.js in 47ms
➤ YN0000: [@joplin/turndown-plugin-gfm]: Process exited (exit code 0), completed in 0s 690ms
➤ YN0000: [@joplin/pdf-viewer]: asset main.js 1.66 MiB [compared for emit] [minimized] [big] (name: main) 1 related asset
➤ YN0000: [@joplin/pdf-viewer]: asset pdf.worker.js 1010 KiB [compared for emit] [minimized] [big] (name: pdf.worker) 1 related asset
➤ YN0000: [@joplin/pdf-viewer]: orphan modules 129 KiB [orphan] 5 modules
➤ YN0000: [@joplin/pdf-viewer]: runtime modules 972 bytes 5 modules
➤ YN0000: [@joplin/pdf-viewer]: modules by path ./ 4.03 MiB 59 modules
➤ YN0000: [@joplin/pdf-viewer]: modules by path ../lib/ 14.3 KiB
➤ YN0000: [@joplin/pdf-viewer]:   ../lib/shim.ts 13.7 KiB [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]:   ../lib/hooks/useAsyncEffect.ts 682 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: fs (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: canvas (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: zlib (ignored) 15 bytes [optional] [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: http (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: https (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: url (ignored) 15 bytes [built] [code generated]
➤ YN0000: [@joplin/pdf-viewer]: webpack 5.74.0 compiled successfully in 19612 ms
➤ YN0000: [@joplin/pdf-viewer]: Process exited (exit code 0), completed in 21s 181ms
➤ YN0000: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
➤ YN0000: Failed with errors in 22s 733ms
    at makeError (/Users/tessus/data/work/joplin/packages/tools/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/Users/tessus/data/work/joplin/packages/tools/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async fn (/Users/tessus/data/work/joplin/gulpfile.js:35:5)

Maybe I am using a too old nodejs vesion, which is v16.13.1. Any ideas?

Same issue with node 19.0.0. I bet it's caused by an update to one of dependencies, there's been quite a few of them recently.

I thought I saw an upgrade to to node 18 at some point in the notifications? There have been a million dependency upgrades so its been hard to keep track.

Could be possible, but aren't the dpendency PRs also going through the test pipeline?

Btw, other than that, is nodejs 19 ok and safe to use? I remember that there were issues in the past when the nodejs version was too recent. :wink:

Ok, at commit 8d0525af1ba252bb79da93498e7a34a63dff5d22 I don't get any errors (dev HEAD^3).

1 Like

They are. And they are failing there as well, though tbh I've not checked if it's for the same reason.

That's why I then picked the last commit that had successful pipeline results. :wink: haha

Yes looks like that particular commit wasn't good although I assume it initially passed CI or I wouldn't have merged. I'll check, thanks for bringing it up

No worries. I was just worried that I broke my env or something.

Btw, which node version are you using for dev? Can we use 18 or 19 already? I know the BUILD.md says 16+, but I remember newer versions might not work.

I use 18, and CI too now so it should work

1 Like

This topic was automatically closed 730 days after the last reply. New replies are no longer allowed.