Getting Build Error on Windows 11

System Information
Windows 11
node version 18.15.0
Yarn 4.1.0

I am following build guide given at [joplinapp.org] but I am getting the following error at yarn install.

 npx yarn install
➤ YN0000: · Yarn 4.1.0
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 989ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 6s 413ms
➤ YN0000: ┌ Link step
➤ 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: C:\Users\sinha\AppData\Local\Temp\xfs-ebad6022\build.log)
➤ YN0000: └ Completed in 9s 325ms
➤ YN0000: · Failed with errors in 17s 695ms

and This is my error log

# This file contains the result of Yarn building a package (root@workspace:.)
# Script name: postinstall

[e[90m01:38:49e[39m] Using gulpfile ~\Documents\joplin\gulpfile.js
[e[90m01:38:49e[39m] Starting 'build'...
> yarn run buildParallel
e[31me[1mInternal Errore[22me[39m: typescript@patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile
    at V0.getCandidates (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:435:5145)
    at kf.getCandidates (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:391:1264)
    at C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:439:8033
    at df (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:390:11070)
    at ge (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:439:8013)
    at async Promise.allSettled (index 1)
    at async io (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:390:10398)
[e[90m01:38:51e[39m] 'build' errored after 1.8 s
[e[90m01:38:51e[39m] Error: Command failed with exit code 1: yarn run buildParallel
e[31me[1mInternal Errore[22me[39m: typescript@patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile
    at V0.getCandidates (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:435:5145)
    at kf.getCandidates (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:391:1264)
    at C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:439:8033
    at df (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:390:11070)
    at ge (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:439:8013)
    at async Promise.allSettled (index 1)
    at async io (C:\Users\sinha\Documents\joplin\.yarn\releases\yarn-3.6.4.cjs:390:10398)
    at makeError (C:\Users\sinha\Documents\joplin\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\sinha\Documents\joplin\node_modules\execa\index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async execCommand (C:\Users\sinha\Documents\joplin\gulpfile.js:27:17)
    at async fn (C:\Users\sinha\Documents\joplin\gulpfile.js:64:5)

1 Like

I am following build guide given at [joplinapp.org] but I am getting the following error at yarn install.

Well not really since we don't mention npx yarn install anywhere. Step 1 would be to actually follow the guide - I'm not saying npx is the issue but let's start with that

Ok, now it's working but I face another Issue

 cd packages/app-mobile/android
PS C:\Users\sinha\Documents\joplin\packages\app-mobile\android> ./gradlew installDebug # or gradlew.bat installDebug on Windows

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\sinha\Documents\joplin\packages\app-mobile\android\settings.gradle' (C:\Users\sinha\.gradle\caches\7.5.1\scripts\dtv25isudrjsbyggoltmhg1ws).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

My own react native code is working fine I can debug it.

Think you need a newer JDK

If you had searched for your error message you would've found it immediately: