Error while running building scripts

I ran npm i from root and after facing many errors, I have yet another error.
It is failing at jetify && npm run build .

Snapshot of terminal


USER@LAPTOP-E32OVF97 MINGW64 /d/web-dev/web-dev4/joplin (dev)
$ npm i

> postinstall
> npm run bootstrap --no-ci && npm run build


> bootstrap
> lerna bootstrap --force-local --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 15 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna info lifecycle @joplin/app-clipper@1.0.8~postinstall: @joplin/app-clipper@1.0.8
lerna info lifecycle @joplin/app-desktop@2.0.4~postinstall: @joplin/app-desktop@2.0.4
lerna info lifecycle @joplin/app-mobile@0.8.9~postinstall: @joplin/app-mobile@0.8.9

> @joplin/app-clipper@1.0.8 postinstall D:\web-dev\web-dev4\joplin\packages\app-clipper
> cd popup && npm install


> joplin-webclipper-popup@0.1.0 postinstall
> node postinstall.js && npm run build


> joplin-webclipper-popup@0.1.0 build
> node scripts/build.js SKIP_PREFLIGHT_CHECK

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Compiled successfully.

File sizes after gzip:

  47.92 KB  build\static\js\2.chunk.js
  7.52 KB   build\static\js\main.chunk.js
  775 B     build\static\js\runtime-main.js
  746 B     build\static\css\main.chunk.css

The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  bit.ly/CRA-deploy


added 8 packages, changed 1 package, and audited 1910 packages in 22s

115 vulnerabilities (4 low, 89 moderate, 22 high)

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.

> @joplin/app-desktop@2.0.4 postinstall D:\web-dev\web-dev4\joplin\packages\app-desktop
> npm run build


> @joplin/app-desktop@2.0.4 build
> gulp build

D:/web-dev/web-dev4/joplin
[17:55:27] Using gulpfile D:\web-dev\web-dev4\joplin\packages\app-desktop\gulpfile.js
[17:55:27] Starting 'build'...
[17:55:27] Starting 'compileScripts'...
[17:55:27] Starting 'compilePackageInfo'...
[17:55:27] Starting 'copyPluginAssets'...
[17:55:27] Starting 'copyTinyMceLangs'...
[17:55:27] Starting 'updateIgnoredTypeScriptBuild'...
Copying to D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../gui/note-viewer/pluginAssets
Copying D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../../../Assets/TinyMCE/langs => D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../node_modules/tinymce/langs       
[17:55:27] Finished 'compileScripts' after 883 ms
[17:55:27] Finished 'compilePackageInfo' after 883 ms
[17:55:28] Finished 'updateIgnoredTypeScriptBuild' after 933 ms
Copying to D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../pluginAssets
[17:55:28] Finished 'copyPluginAssets' after 1.13 s
[17:55:28] Finished 'copyTinyMceLangs' after 1.27 s
[17:55:28] Finished 'build' after 1.28 s

> @joplin/app-mobile@0.8.9 postinstall D:\web-dev\web-dev4\joplin\packages\app-mobile
> jetify && npm run build

'jetify' is not recognized as an internal or external command,
operable program or batch file.
lerna info lifecycle @joplin/app-mobile@0.8.9~postinstall: Failed to exec postinstall script
lerna ERR! lifecycle "postinstall" errored in "@joplin/app-mobile", exiting 1
npm ERR! code 1
npm ERR! path D:\web-dev\web-dev4\joplin
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run bootstrap --no-ci && npm run build

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\USER\AppData\Local\npm-cache\_logs\2021-06-09T12_25_28_519Z-debug.log

USER@LAPTOP-E32OVF97 MINGW64 /d/web-dev/web-dev4/joplin (dev)
$

Can I know how go fix this issue as am repeatedly facing issues while running npm install

Some details-
OS- Windows 10 Home
npm version- 7.15.1
node version - 14.17.0

$ npm list -g
C:\Users\USER\AppData\Roaming\npm
├── create-react-app@3.4.1
├── firebase-tools@8.10.0
├── generator-joplin@1.8.1
├── meteor@2.2.1
├── nodemon@2.0.6
├── npm-check-updates@9.1.2
├── npm@7.15.1
├── windows-build-tools@5.2.2
└── yo@4.2.0

As said in other similar topic to downgrade npm to v6.
I tried npx -p npm@6 npm i --legacy-peer-deps but still face same issue

Try npm 6 and node 12.

I downgraded node to version 12.22.1 and npm to version 6.14.12, but still face the same issue.

Jetify is just for the Android build and maybe it's not even needed anymore so you could try to remove that command.

Thanks, but now I get another error related to typescript


USER@LAPTOP-E32OVF97 MINGW64 /d/web-dev/web-dev4/joplin (dev)
$ npm i
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

> root@ postinstall D:\web-dev\web-dev4\joplin
> npm run bootstrap --no-ci && npm run build  


> root@ bootstrap D:\web-dev\web-dev4\joplin
> lerna bootstrap --force-local --no-ci     

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 15 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna info lifecycle @joplin/app-clipper@1.0.8~postinstall: @joplin/app-clipper@1.0.8
lerna info lifecycle @joplin/app-desktop@2.0.4~postinstall: @joplin/app-desktop@2.0.4

> @joplin/app-clipper@1.0.8 postinstall D:\web-dev\web-dev4\joplin\packages\app-clipper
> cd popup && npm install


> joplin-webclipper-popup@0.1.0 postinstall D:\web-dev\web-dev4\joplin\packages\app-clipper\popup
> node postinstall.js && npm run build


> joplin-webclipper-popup@0.1.0 build D:\web-dev\web-dev4\joplin\packages\app-clipper\popup
> node scripts/build.js SKIP_PREFLIGHT_CHECK

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Compiled successfully.

File sizes after gzip:

  47.92 KB  build\static\js\2.chunk.js
  7.52 KB   build\static\js\main.chunk.js
  775 B     build\static\js\runtime-main.js
  746 B     build\static\css\main.chunk.css

The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  bit.ly/CRA-deploy

npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN The package fs-extra is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\watchpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\react-scripts\node_modules\webpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\react-scripts\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\jest-haste-map\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

audited 2048 packages in 114.014s

68 packages are looking for funding
  run `npm fund` for details

found 1056 vulnerabilities (786 low, 243 moderate, 27 high)
  run `npm audit fix` to fix them, or `npm audit` for details

> @joplin/app-desktop@2.0.4 postinstall D:\web-dev\web-dev4\joplin\packages\app-desktop
> npm run build


> @joplin/app-desktop@2.0.4 build D:\web-dev\web-dev4\joplin\packages\app-desktop
> gulp build

D:/web-dev/web-dev4/joplin
[19:31:44] Using gulpfile D:\web-dev\web-dev4\joplin\packages\app-desktop\gulpfile.js
[19:31:44] Starting 'build'...
[19:31:44] Starting 'compileScripts'...
[19:31:44] Starting 'compilePackageInfo'...
[19:31:44] Starting 'copyPluginAssets'...
[19:31:44] Starting 'copyTinyMceLangs'...
[19:31:44] Starting 'updateIgnoredTypeScriptBuild'...
Copying to D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../gui/note-viewer/pluginAssets
Copying D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../../../Assets/TinyMCE/langs => D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../node_modules/tinymce/langs
[19:31:48] Finished 'compileScripts' after 3.84 s
[19:31:48] Finished 'compilePackageInfo' after 3.84 s
[19:31:48] Finished 'updateIgnoredTypeScriptBuild' after 3.91 s
Copying to D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../pluginAssets
[19:31:48] Finished 'copyTinyMceLangs' after 4.04 s
[19:31:49] Finished 'copyPluginAssets' after 4.14 s
[19:31:49] Finished 'build' after 4.15 s
lerna info lifecycle @joplin/fork-htmlparser2@4.1.26~prepare: @joplin/fork-htmlparser2@4.1.26
lerna info lifecycle @joplin/turndown-plugin-gfm@1.0.30~prepare: @joplin/turndown-plugin-gfm@1.0.30
lerna info lifecycle @joplin/turndown@4.0.48~prepare: @joplin/turndown@4.0.48

> @joplin/turndown-plugin-gfm@1.0.30 prepare D:\web-dev\web-dev4\joplin\packages\turndown-plugin-gfm
> npm run build


> @joplin/turndown-plugin-gfm@1.0.30 build D:\web-dev\web-dev4\joplin\packages\turndown-plugin-gfm
> rollup -c config/rollup.config.cjs.js


src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
created lib/turndown-plugin-gfm.cjs.js in 78ms

> @joplin/fork-htmlparser2@4.1.26 prepare D:\web-dev\web-dev4\joplin\packages\fork-htmlparser2
> npm run build


> @joplin/fork-htmlparser2@4.1.26 build D:\web-dev\web-dev4\joplin\packages\fork-htmlparser2
> tsc


> @joplin/turndown@4.0.48 prepare D:\web-dev\web-dev4\joplin\packages\turndown
> npm run build


> @joplin/turndown@4.0.48 build D:\web-dev\web-dev4\joplin\packages\turndown
> rollup -c config/rollup.config.cjs.js


src/turndown.js → lib/turndown.cjs.js...
created lib/turndown.cjs.js in 284ms
lerna success Bootstrapped 15 packages

> root@ build D:\web-dev\web-dev4\joplin
> lerna run build && npm run tsc

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 6 packages: "npm run build"
lerna info run Ran npm script 'build' in '@joplin/turndown-plugin-gfm' in 2.2s:

> @joplin/turndown-plugin-gfm@1.0.30 build D:\web-dev\web-dev4\joplin\packages\turndown-plugin-gfm
> rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/turndown' in 2.8s:

> @joplin/turndown@4.0.48 build D:\web-dev\web-dev4\joplin\packages\turndown
> rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/app-desktop' in 4.4s:

> @joplin/app-desktop@2.0.4 build D:\web-dev\web-dev4\joplin\packages\app-desktop
> gulp build

D:/web-dev/web-dev4/joplin
[19:32:18] Using gulpfile D:\web-dev\web-dev4\joplin\packages\app-desktop\gulpfile.js
[19:32:18] Starting 'build'...
[19:32:18] Starting 'compileScripts'...
[19:32:18] Starting 'compilePackageInfo'...
[19:32:18] Starting 'copyPluginAssets'...
[19:32:18] Starting 'copyTinyMceLangs'...
[19:32:18] Starting 'updateIgnoredTypeScriptBuild'...
Copying to D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../gui/note-viewer/pluginAssets
Copying D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../../../Assets/TinyMCE/langs => D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../node_modules/tinymce/langs       
[19:32:19] Finished 'compileScripts' after 988 ms
[19:32:19] Finished 'compilePackageInfo' after 989 ms
[19:32:19] Finished 'updateIgnoredTypeScriptBuild' after 1.03 s
[19:32:19] Finished 'copyTinyMceLangs' after 1.09 s
Copying to D:\web-dev\web-dev4\joplin\packages\app-desktop\tools/../pluginAssets
[19:32:19] Finished 'copyPluginAssets' after 1.22 s
[19:32:19] Finished 'build' after 1.22 s
lerna info run Ran npm script 'build' in '@joplin/fork-htmlparser2' in 11.7s:

> @joplin/fork-htmlparser2@4.1.26 build D:\web-dev\web-dev4\joplin\packages\fork-htmlparser2
> tsc

lerna info run Ran npm script 'build' in 'joplin' in 37.6s:

> joplin@2.0.0 build D:\web-dev\web-dev4\joplin\packages\app-cli
> gulp build

[19:32:45] Using gulpfile D:\web-dev\web-dev4\joplin\packages\app-cli\gulpfile.js
[19:32:45] Starting 'build'...
[19:32:45] Starting 'prepareBuild'...
[19:32:52] Finished 'prepareBuild' after 7.34 s
[19:32:52] Finished 'build' after 7.34 s
lerna info run Ran npm script 'build' in '@joplin/app-mobile' in 38.0s:

> @joplin/app-mobile@0.8.9 build D:\web-dev\web-dev4\joplin\packages\app-mobile
> gulp build

[19:32:53] Using gulpfile D:\web-dev\web-dev4\joplin\packages\app-mobile\gulpfile.js
[19:32:53] Starting 'build'...
[19:32:53] Starting 'buildReactNativeInjectedJs'...
[19:32:53] Finished 'buildReactNativeInjectedJs' after 31 ms
[19:32:53] Starting 'encodeAssets'...
[19:32:53] Finished 'encodeAssets' after 335 ms
[19:32:53] Starting 'podInstall'...
[19:32:53] Finished 'podInstall' after 789 μs
[19:32:53] Finished 'build' after 370 ms
lerna success run Ran npm script 'build' in 6 packages in 38.1s:
lerna success - joplin
lerna success - @joplin/app-desktop
lerna success - @joplin/app-mobile
lerna success - @joplin/fork-htmlparser2
lerna success - @joplin/turndown-plugin-gfm
lerna success - @joplin/turndown

> root@ tsc D:\web-dev\web-dev4\joplin
> lerna run tsc --stream --parallel

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 8 packages: "npm run tsc"
joplin: > joplin@2.0.0 tsc D:\web-dev\web-dev4\joplin\packages\app-cli
joplin: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/app-desktop: > @joplin/app-desktop@2.0.4 tsc D:\web-dev\web-dev4\joplin\packages\app-desktop
@joplin/app-desktop: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/app-mobile: > @joplin/app-mobile@0.8.9 tsc D:\web-dev\web-dev4\joplin\packages\app-mobile
@joplin/app-mobile: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/plugin-repo-cli: > @joplin/plugin-repo-cli@2.0.2 tsc D:\web-dev\web-dev4\joplin\packages\plugin-repo-cli
@joplin/plugin-repo-cli: > tsc --project tsconfig.json
@joplin/tools: > @joplin/tools@2.0.2 tsc D:\web-dev\web-dev4\joplin\packages\tools
@joplin/tools: > tsc --project tsconfig.json
@joplin/server: > @joplin/server@2.0.5 tsc D:\web-dev\web-dev4\joplin\packages\server
@joplin/server: > tsc --project tsconfig.json
@joplin/renderer: > @joplin/renderer@2.0.2 tsc D:\web-dev\web-dev4\joplin\packages\renderer
@joplin/renderer: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/lib: > @joplin/lib@2.0.2 tsc D:\web-dev\web-dev4\joplin\packages\lib
@joplin/lib: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/server: node_modules/knex/types/index.d.ts(1130,16): error TS1110: Type expected.
@joplin/server: node_modules/knex/types/index.d.ts(1131,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1132,5): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1132,6): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1132,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1134,33): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1135,15): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1136,13): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1136,66): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1136,84): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1137,13): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1137,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1138,43): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1139,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1141,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1142,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1143,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1144,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1145,6): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1145,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1147,36): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1148,16): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1148,27): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1150,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1151,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1152,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1153,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1154,5): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1154,6): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1154,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1156,36): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1157,16): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1157,27): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1159,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1160,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1161,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1162,10): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1163,5): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1163,6): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1163,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1165,33): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1166,15): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1167,13): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1167,66): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1167,84): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1168,13): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1168,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1169,43): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1170,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1172,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1173,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1174,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1175,15): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1176,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1177,6): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1177,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1179,33): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1180,15): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1181,13): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1181,66): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1181,84): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1182,13): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1182,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1183,43): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1184,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1186,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1187,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1188,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1189,15): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1190,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1191,6): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1191,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1193,36): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1194,16): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1194,27): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1196,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1197,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1198,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1199,15): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1200,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1201,5): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1201,6): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1201,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(2431,1): error TS1128: Declaration or statement expected.
@joplin/server: npm ERR! code ELIFECYCLE
@joplin/server: npm ERR! errno 2
@joplin/server: npm ERR! @joplin/server@2.0.5 tsc: `tsc --project tsconfig.json`
@joplin/server: npm ERR! Exit status 2
@joplin/server: npm ERR!
@joplin/server: npm ERR! Failed at the @joplin/server@2.0.5 tsc script.
@joplin/server: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@joplin/server: npm ERR! A complete log of this run can be found in:
@joplin/server: npm ERR!     C:\Users\USER\AppData\Roaming\npm-cache\_logs\2021-06-09T14_04_02_656Z-debug.log
lerna ERR! npm run tsc exited 2 in '@joplin/server'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ tsc: `lerna run tsc --stream --parallel`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ tsc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\USER\AppData\Roaming\npm-cache\_logs\2021-06-09T14_04_02_731Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ build: `lerna run build && npm run tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\USER\AppData\Roaming\npm-cache\_logs\2021-06-09T14_04_02_786Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ postinstall: `npm run bootstrap --no-ci && npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\USER\AppData\Roaming\npm-cache\_logs\2021-06-09T14_04_02_876Z-debug.log

USER@LAPTOP-E32OVF97 MINGW64 /d/web-dev/web-dev4/joplin (dev)

What is this MINGW64 thing anyway? Can you try with WSL?

That MINGW64 is just git bash terminal in vscode. I tried with wsl2, but gives the same error

Try running npm update

What's the error log in WSL?

I get the same error in wsl terminal as in windows git bash terminal.
The log file created when using wsl terminal can be found here.

I mean the output from the terminal. Please post it here in the forum as it's easier to see.

siddharth963@LAPTOP-E32OVF97:/mnt/d/web-dev/web-dev4/joplin$ npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

> root@ postinstall /mnt/d/web-dev/web-dev4/joplin
> npm run bootstrap --no-ci && npm run build


> root@ bootstrap /mnt/d/web-dev/web-dev4/joplin
> lerna bootstrap --force-local --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 15 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna info lifecycle @joplin/app-clipper@1.0.8~postinstall: @joplin/app-clipper@1.0.8
lerna info lifecycle @joplin/app-desktop@2.0.4~postinstall: @joplin/app-desktop@2.0.4

> @joplin/app-clipper@1.0.8 postinstall /mnt/d/web-dev/web-dev4/joplin/packages/app-clipper
> cd popup && npm install


> joplin-webclipper-popup@0.1.0 postinstall /mnt/d/web-dev/web-dev4/joplin/packages/app-clipper/popup
> node postinstall.js && npm run build


> joplin-webclipper-popup@0.1.0 build /mnt/d/web-dev/web-dev4/joplin/packages/app-clipper/popup
> node scripts/build.js SKIP_PREFLIGHT_CHECK

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Compiled successfully.

File sizes after gzip:

  47.92 KB  build/static/js/2.chunk.js
  7.52 KB   build/static/js/main.chunk.js
  775 B     build/static/js/runtime-main.js
  746 B     build/static/css/main.chunk.css

The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  bit.ly/CRA-deploy

npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN The package fs-extra is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/react-scripts/node_modules/webpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/react-scripts/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 2048 packages in 242.466s

68 packages are looking for funding
  run `npm fund` for details

found 1056 vulnerabilities (786 low, 243 moderate, 27 high)
  run `npm audit fix` to fix them, or `npm audit` for details

> @joplin/app-desktop@2.0.4 postinstall /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop
> npm run build


> @joplin/app-desktop@2.0.4 build /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop
> gulp build

/mnt/d/web-dev/web-dev4/joplin
[20:06:50] Using gulpfile /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/gulpfile.js
[20:06:50] Starting 'build'...
[20:06:50] Starting 'compileScripts'...
[20:06:50] Starting 'compilePackageInfo'...
[20:06:50] Starting 'copyPluginAssets'...
[20:06:50] Starting 'copyTinyMceLangs'...
[20:06:50] Starting 'updateIgnoredTypeScriptBuild'...
Copying to /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../gui/note-viewer/pluginAssets
Copying /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../../../Assets/TinyMCE/langs => /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../node_modules/tinymce/langs
[20:07:17] Finished 'compileScripts' after 28 s
[20:07:17] Finished 'compilePackageInfo' after 28 s
[20:07:17] Finished 'updateIgnoredTypeScriptBuild' after 28 s
Copying to /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../pluginAssets
[20:07:18] Finished 'copyPluginAssets' after 28 s
[20:07:18] Finished 'copyTinyMceLangs' after 28 s
[20:07:18] Finished 'build' after 28 s
lerna info lifecycle @joplin/fork-htmlparser2@4.1.26~prepare: @joplin/fork-htmlparser2@4.1.26
lerna info lifecycle @joplin/turndown-plugin-gfm@1.0.30~prepare: @joplin/turndown-plugin-gfm@1.0.30
lerna info lifecycle @joplin/turndown@4.0.48~prepare: @joplin/turndown@4.0.48

> @joplin/fork-htmlparser2@4.1.26 prepare /mnt/d/web-dev/web-dev4/joplin/packages/fork-htmlparser2
> npm run build


> @joplin/fork-htmlparser2@4.1.26 build /mnt/d/web-dev/web-dev4/joplin/packages/fork-htmlparser2
> tsc


> @joplin/turndown@4.0.48 prepare /mnt/d/web-dev/web-dev4/joplin/packages/turndown
> npm run build


> @joplin/turndown@4.0.48 build /mnt/d/web-dev/web-dev4/joplin/packages/turndown
> rollup -c config/rollup.config.cjs.js


src/turndown.js → lib/turndown.cjs.js...
created lib/turndown.cjs.js in 324ms

> @joplin/turndown-plugin-gfm@1.0.30 prepare /mnt/d/web-dev/web-dev4/joplin/packages/turndown-plugin-gfm
> npm run build


> @joplin/turndown-plugin-gfm@1.0.30 build /mnt/d/web-dev/web-dev4/joplin/packages/turndown-plugin-gfm
> rollup -c config/rollup.config.cjs.js


src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
created lib/turndown-plugin-gfm.cjs.js in 184ms
lerna success Bootstrapped 15 packages

> root@ build /mnt/d/web-dev/web-dev4/joplin
> lerna run build && npm run tsc

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 6 packages: "npm run build"
lerna info run Ran npm script 'build' in '@joplin/turndown-plugin-gfm' in 3.4s:

> @joplin/turndown-plugin-gfm@1.0.30 build /mnt/d/web-dev/web-dev4/joplin/packages/turndown-plugin-gfm
> rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/turndown' in 5.5s:

> @joplin/turndown@4.0.48 build /mnt/d/web-dev/web-dev4/joplin/packages/turndown
> rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/fork-htmlparser2' in 11.7s:

> @joplin/fork-htmlparser2@4.1.26 build /mnt/d/web-dev/web-dev4/joplin/packages/fork-htmlparser2
> tsc

lerna info run Ran npm script 'build' in 'joplin' in 36.2s:

> joplin@2.0.0 build /mnt/d/web-dev/web-dev4/joplin/packages/app-cli
> gulp build

[20:08:34] Using gulpfile /mnt/d/web-dev/web-dev4/joplin/packages/app-cli/gulpfile.js
[20:08:34] Starting 'build'...
[20:08:34] Starting 'prepareBuild'...
[20:08:34] Finished 'prepareBuild' after 318 ms
[20:08:34] Finished 'build' after 319 ms
lerna info run Ran npm script 'build' in '@joplin/app-mobile' in 41.5s:

> @joplin/app-mobile@0.8.9 build /mnt/d/web-dev/web-dev4/joplin/packages/app-mobile
> gulp build

[20:08:39] Using gulpfile /mnt/d/web-dev/web-dev4/joplin/packages/app-mobile/gulpfile.js
[20:08:39] Starting 'build'...
[20:08:39] Starting 'buildReactNativeInjectedJs'...
[20:08:39] Finished 'buildReactNativeInjectedJs' after 20 ms
[20:08:39] Starting 'encodeAssets'...
[20:08:39] Finished 'encodeAssets' after 805 ms
[20:08:39] Starting 'podInstall'...
[20:08:39] Finished 'podInstall' after 540 μs
[20:08:39] Finished 'build' after 829 ms
lerna info run Ran npm script 'build' in '@joplin/app-desktop' in 47.9s:

> @joplin/app-desktop@2.0.4 build /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop
> gulp build

/mnt/d/web-dev/web-dev4/joplin
[20:08:32] Using gulpfile /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/gulpfile.js
[20:08:32] Starting 'build'...
[20:08:32] Starting 'compileScripts'...
[20:08:32] Starting 'compilePackageInfo'...
[20:08:32] Starting 'copyPluginAssets'...
[20:08:32] Starting 'copyTinyMceLangs'...
[20:08:32] Starting 'updateIgnoredTypeScriptBuild'...
Copying to /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../gui/note-viewer/pluginAssets
Copying /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../../../Assets/TinyMCE/langs => /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../node_modules/tinymce/langs
[20:08:46] Finished 'compileScripts' after 14 s
[20:08:46] Finished 'compilePackageInfo' after 14 s
Copying to /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../pluginAssets
[20:08:46] Finished 'copyTinyMceLangs' after 14 s
[20:08:46] Finished 'updateIgnoredTypeScriptBuild' after 14 s
[20:08:46] Finished 'copyPluginAssets' after 14 s
[20:08:46] Finished 'build' after 14 s
lerna success run Ran npm script 'build' in 6 packages in 47.9s:
lerna success - joplin
lerna success - @joplin/app-desktop
lerna success - @joplin/app-mobile
lerna success - @joplin/fork-htmlparser2
lerna success - @joplin/turndown-plugin-gfm
lerna success - @joplin/turndown

> root@ tsc /mnt/d/web-dev/web-dev4/joplin
> lerna run tsc --stream --parallel

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 8 packages: "npm run tsc"
@joplin/app-mobile: > @joplin/app-mobile@0.8.9 tsc /mnt/d/web-dev/web-dev4/joplin/packages/app-mobile
@joplin/app-mobile: > node node_modules/typescript/bin/tsc --project tsconfig.json
joplin: > joplin@2.0.0 tsc /mnt/d/web-dev/web-dev4/joplin/packages/app-cli
joplin: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/app-desktop: > @joplin/app-desktop@2.0.4 tsc /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop
@joplin/app-desktop: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/lib: > @joplin/lib@2.0.2 tsc /mnt/d/web-dev/web-dev4/joplin/packages/lib
@joplin/lib: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/plugin-repo-cli: > @joplin/plugin-repo-cli@2.0.2 tsc /mnt/d/web-dev/web-dev4/joplin/packages/plugin-repo-cli
@joplin/plugin-repo-cli: > tsc --project tsconfig.json
@joplin/renderer: > @joplin/renderer@2.0.2 tsc /mnt/d/web-dev/web-dev4/joplin/packages/renderer
@joplin/renderer: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/server: > @joplin/server@2.0.5 tsc /mnt/d/web-dev/web-dev4/joplin/packages/server
@joplin/server: > tsc --project tsconfig.json
@joplin/tools: > @joplin/tools@2.0.2 tsc /mnt/d/web-dev/web-dev4/joplin/packages/tools
@joplin/tools: > tsc --project tsconfig.json
@joplin/server: node_modules/knex/types/index.d.ts(1130,16): error TS1110: Type expected.
@joplin/server: node_modules/knex/types/index.d.ts(1131,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1132,5): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1132,6): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1132,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1134,33): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1135,15): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1136,13): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1136,66): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1136,84): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1137,13): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1137,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1138,43): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1139,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1141,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1142,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1143,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1144,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1145,6): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1145,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1147,36): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1148,16): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1148,27): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1150,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1151,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1152,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1153,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1154,5): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1154,6): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1154,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1156,36): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1157,16): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1157,27): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1159,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1160,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1161,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1162,10): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1163,5): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1163,6): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1163,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1165,33): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1166,15): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1167,13): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1167,66): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1167,84): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1168,13): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1168,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1169,43): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1170,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1172,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1173,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1174,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1175,15): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1176,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1177,6): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1177,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1179,33): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1180,15): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1181,13): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1181,66): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1181,84): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1182,13): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1182,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1183,43): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1184,65): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1186,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1187,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1188,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1189,15): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1190,14): error TS1005: ',' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1191,6): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1191,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1193,36): error TS1005: '?' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1194,16): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1194,27): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1196,5): error TS1109: Expression expected.
@joplin/server: node_modules/knex/types/index.d.ts(1197,16): error TS1005: ')' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1198,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1199,15): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1200,14): error TS1005: ';' expected.
@joplin/server: node_modules/knex/types/index.d.ts(1201,5): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1201,6): error TS1128: Declaration or statement expected.
@joplin/server: node_modules/knex/types/index.d.ts(1201,40): error TS1005: '(' expected.
@joplin/server: node_modules/knex/types/index.d.ts(2431,1): error TS1128: Declaration or statement expected.
@joplin/server: npm ERR! code ELIFECYCLE
@joplin/server: npm ERR! errno 2
@joplin/server: npm ERR! @joplin/server@2.0.5 tsc: `tsc --project tsconfig.json`
@joplin/server: npm ERR! Exit status 2
@joplin/server: npm ERR!
@joplin/server: npm ERR! Failed at the @joplin/server@2.0.5 tsc script.
@joplin/server: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@joplin/server: npm ERR! A complete log of this run can be found in:
@joplin/server: npm ERR!     /home/siddharth963/.npm/_logs/2021-06-09T14_39_34_460Z-debug.log
lerna ERR! npm run tsc exited 2 in '@joplin/server'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ tsc: `lerna run tsc --stream --parallel`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ tsc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/siddharth963/.npm/_logs/2021-06-09T14_39_34_527Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ build: `lerna run build && npm run tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/siddharth963/.npm/_logs/2021-06-09T14_39_34_579Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ postinstall: `npm run bootstrap --no-ci && npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/siddharth963/.npm/_logs/2021-06-09T14_39_34_842Z-debug.log
siddharth963@LAPTOP-E32OVF97:/mnt/d/web-dev/web-dev4/joplin$ 

Yes I did, but now I get some similar error


siddharth963@LAPTOP-E32OVF97:/mnt/d/web-dev/web-dev4/joplin$ npm install

> root@ postinstall /mnt/d/web-dev/web-dev4/joplin
> npm run bootstrap --no-ci && npm run build


> root@ bootstrap /mnt/d/web-dev/web-dev4/joplin
> lerna bootstrap --force-local --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 15 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna info lifecycle @joplin/app-clipper@1.0.8~postinstall: @joplin/app-clipper@1.0.8
lerna info lifecycle @joplin/app-desktop@2.0.4~postinstall: @joplin/app-desktop@2.0.4

> @joplin/app-desktop@2.0.4 postinstall /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop
> npm run build


> @joplin/app-desktop@2.0.4 build /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop
> gulp build

/mnt/d/web-dev/web-dev4/joplin
[21:12:11] Using gulpfile /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/gulpfile.js
[21:12:11] Starting 'build'...
[21:12:11] Starting 'compileScripts'...
[21:12:11] Starting 'compilePackageInfo'...
[21:12:11] Starting 'copyPluginAssets'...
[21:12:11] Starting 'copyTinyMceLangs'...
[21:12:11] Starting 'updateIgnoredTypeScriptBuild'...
Copying to /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../gui/note-viewer/pluginAssets
Copying /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../../../Assets/TinyMCE/langs => /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../node_modules/tinymce/langs
[21:12:26] Finished 'compileScripts' after 15 s
[21:12:26] Finished 'compilePackageInfo' after 15 s
[21:12:26] Finished 'updateIgnoredTypeScriptBuild' after 15 s
Copying to /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../pluginAssets
[21:12:26] Finished 'copyPluginAssets' after 15 s
[21:12:26] Finished 'copyTinyMceLangs' after 15 s
[21:12:26] Finished 'build' after 16 s

> @joplin/app-clipper@1.0.8 postinstall /mnt/d/web-dev/web-dev4/joplin/packages/app-clipper
> cd popup && npm install


> joplin-webclipper-popup@0.1.0 postinstall /mnt/d/web-dev/web-dev4/joplin/packages/app-clipper/popup
> node postinstall.js && npm run build


> joplin-webclipper-popup@0.1.0 build /mnt/d/web-dev/web-dev4/joplin/packages/app-clipper/popup
> node scripts/build.js SKIP_PREFLIGHT_CHECK

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Compiled successfully.

File sizes after gzip:

  47.92 KB  build/static/js/2.chunk.js
  7.52 KB   build/static/js/main.chunk.js
  775 B     build/static/js/runtime-main.js
  746 B     build/static/css/main.chunk.css

The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  bit.ly/CRA-deploy

npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN The package fs-extra is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/react-scripts/node_modules/webpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/react-scripts/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 2048 packages in 179.053s

68 packages are looking for funding
  run `npm fund` for details

found 1056 vulnerabilities (786 low, 243 moderate, 27 high)
  run `npm audit fix` to fix them, or `npm audit` for details
lerna info lifecycle @joplin/fork-htmlparser2@4.1.26~prepare: @joplin/fork-htmlparser2@4.1.26
lerna info lifecycle @joplin/turndown-plugin-gfm@1.0.30~prepare: @joplin/turndown-plugin-gfm@1.0.30
lerna info lifecycle @joplin/turndown@4.0.48~prepare: @joplin/turndown@4.0.48

> @joplin/turndown-plugin-gfm@1.0.30 prepare /mnt/d/web-dev/web-dev4/joplin/packages/turndown-plugin-gfm
> npm run build


> @joplin/turndown-plugin-gfm@1.0.30 build /mnt/d/web-dev/web-dev4/joplin/packages/turndown-plugin-gfm
> rollup -c config/rollup.config.cjs.js


src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
created lib/turndown-plugin-gfm.cjs.js in 100ms

> @joplin/fork-htmlparser2@4.1.26 prepare /mnt/d/web-dev/web-dev4/joplin/packages/fork-htmlparser2
> npm run build


> @joplin/fork-htmlparser2@4.1.26 build /mnt/d/web-dev/web-dev4/joplin/packages/fork-htmlparser2
> tsc


> @joplin/turndown@4.0.48 prepare /mnt/d/web-dev/web-dev4/joplin/packages/turndown
> npm run build


> @joplin/turndown@4.0.48 build /mnt/d/web-dev/web-dev4/joplin/packages/turndown
> rollup -c config/rollup.config.cjs.js


src/turndown.js → lib/turndown.cjs.js...
created lib/turndown.cjs.js in 278ms
lerna success Bootstrapped 15 packages

> root@ build /mnt/d/web-dev/web-dev4/joplin
> lerna run build && npm run tsc

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 6 packages: "npm run build"
lerna info run Ran npm script 'build' in '@joplin/turndown-plugin-gfm' in 3.1s:

> @joplin/turndown-plugin-gfm@1.0.30 build /mnt/d/web-dev/web-dev4/joplin/packages/turndown-plugin-gfm
> rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/turndown' in 5.2s:

> @joplin/turndown@4.0.48 build /mnt/d/web-dev/web-dev4/joplin/packages/turndown
> rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/fork-htmlparser2' in 11.1s:

> @joplin/fork-htmlparser2@4.1.26 build /mnt/d/web-dev/web-dev4/joplin/packages/fork-htmlparser2
> tsc

lerna info run Ran npm script 'build' in 'joplin' in 32.4s:

> joplin@2.0.0 build /mnt/d/web-dev/web-dev4/joplin/packages/app-cli
> gulp build

[21:16:33] Using gulpfile /mnt/d/web-dev/web-dev4/joplin/packages/app-cli/gulpfile.js
[21:16:33] Starting 'build'...
[21:16:33] Starting 'prepareBuild'...
[21:16:33] Finished 'prepareBuild' after 385 ms
[21:16:33] Finished 'build' after 387 ms
lerna info run Ran npm script 'build' in '@joplin/app-desktop' in 37.2s:

> @joplin/app-desktop@2.0.4 build /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop
> gulp build

/mnt/d/web-dev/web-dev4/joplin
[21:16:20] Using gulpfile /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/gulpfile.js
[21:16:20] Starting 'build'...
[21:16:20] Starting 'compileScripts'...
[21:16:20] Starting 'compilePackageInfo'...
[21:16:20] Starting 'copyPluginAssets'...
[21:16:20] Starting 'copyTinyMceLangs'...
[21:16:20] Starting 'updateIgnoredTypeScriptBuild'...
Copying to /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../gui/note-viewer/pluginAssets
Copying /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../../../Assets/TinyMCE/langs => /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../node_modules/tinymce/langs
[21:16:38] Finished 'compileScripts' after 18 s
[21:16:38] Finished 'compilePackageInfo' after 18 s
[21:16:38] Finished 'updateIgnoredTypeScriptBuild' after 18 s
Copying to /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop/tools/../pluginAssets
[21:16:38] Finished 'copyTinyMceLangs' after 18 s
[21:16:38] Finished 'copyPluginAssets' after 18 s
[21:16:38] Finished 'build' after 18 s
lerna info run Ran npm script 'build' in '@joplin/app-mobile' in 39.4s:

> @joplin/app-mobile@0.8.9 build /mnt/d/web-dev/web-dev4/joplin/packages/app-mobile
> gulp build

[21:16:40] Using gulpfile /mnt/d/web-dev/web-dev4/joplin/packages/app-mobile/gulpfile.js
[21:16:40] Starting 'build'...
[21:16:40] Starting 'buildReactNativeInjectedJs'...
[21:16:40] Finished 'buildReactNativeInjectedJs' after 13 ms
[21:16:40] Starting 'encodeAssets'...
[21:16:40] Finished 'encodeAssets' after 616 ms
[21:16:40] Starting 'podInstall'...
[21:16:40] Finished 'podInstall' after 363 μs
[21:16:40] Finished 'build' after 631 ms
lerna success run Ran npm script 'build' in 6 packages in 39.5s:
lerna success - joplin
lerna success - @joplin/app-desktop
lerna success - @joplin/app-mobile
lerna success - @joplin/fork-htmlparser2
lerna success - @joplin/turndown-plugin-gfm
lerna success - @joplin/turndown

> root@ tsc /mnt/d/web-dev/web-dev4/joplin
> lerna run tsc --stream --parallel

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 8 packages: "npm run tsc"
@joplin/app-mobile: > @joplin/app-mobile@0.8.9 tsc /mnt/d/web-dev/web-dev4/joplin/packages/app-mobile
@joplin/app-mobile: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/app-desktop: > @joplin/app-desktop@2.0.4 tsc /mnt/d/web-dev/web-dev4/joplin/packages/app-desktop
@joplin/app-desktop: > node node_modules/typescript/bin/tsc --project tsconfig.json
joplin: > joplin@2.0.0 tsc /mnt/d/web-dev/web-dev4/joplin/packages/app-cli
joplin: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/lib: > @joplin/lib@2.0.2 tsc /mnt/d/web-dev/web-dev4/joplin/packages/lib
@joplin/lib: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/plugin-repo-cli: > @joplin/plugin-repo-cli@2.0.2 tsc /mnt/d/web-dev/web-dev4/joplin/packages/plugin-repo-cli
@joplin/plugin-repo-cli: > tsc --project tsconfig.json
@joplin/renderer: > @joplin/renderer@2.0.2 tsc /mnt/d/web-dev/web-dev4/joplin/packages/renderer
@joplin/renderer: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/server: > @joplin/server@2.0.5 tsc /mnt/d/web-dev/web-dev4/joplin/packages/server
@joplin/server: > tsc --project tsconfig.json
@joplin/tools: > @joplin/tools@2.0.2 tsc /mnt/d/web-dev/web-dev4/joplin/packages/tools
@joplin/tools: > tsc --project tsconfig.json
@joplin/app-desktop: ElectronAppWrapper.ts(240,6): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?
@joplin/app-desktop: InteropServiceHelper.ts(100,9): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?
@joplin/app-desktop: gui/ConfigScreen/controls/plugins/PluginBox.tsx(72,28): error TS2339: Property 'isCompatible' does not exist on type 'ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & { ...; } & object, any>'.
@joplin/app-desktop: gui/ConfigScreen/controls/plugins/PluginBox.tsx(226,13): error TS2769: No overload matches this call.
@joplin/app-desktop:   Overload 1 of 2, '(props: Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
@joplin/app-desktop:     Type '{ children: Element[]; isCompatible: boolean; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'isCompatible' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:   Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">, string | JSXElementConstructor<...>>', gave the following error.
@joplin/app-desktop:     Type '{ children: Element[]; isCompatible: boolean; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'isCompatible' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop: gui/ConfigScreen/controls/plugins/PluginBox.tsx(228,27): error TS2769: No overload matches this call.
@joplin/app-desktop:   Overload 1 of 2, '(props: Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
@joplin/app-desktop:     Type '{ children: Element[]; mb: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'mb' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:   Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">, string | JSXElementConstructor<...>>', gave the following error.
@joplin/app-desktop:     Type '{ children: Element[]; mb: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'mb' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop: gui/ConfigScreen/controls/plugins/PluginsStates.tsx(41,30): error TS2339: Property 'maxWidth' does not exist on type 'ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & { ...; }, any>'.
@joplin/app-desktop: gui/ConfigScreen/controls/plugins/PluginsStates.tsx(268,22): error TS2769: No overload matches this call.
@joplin/app-desktop:   Overload 1 of 2, '(props: Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
@joplin/app-desktop:     Type '{ children: any; mb: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'mb' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:   Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">, string | JSXElementConstructor<...>>', gave the following error.
@joplin/app-desktop:     Type '{ children: any; mb: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'mb' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop: gui/ConfigScreen/controls/plugins/PluginsStates.tsx(302,31): error TS2769: No overload matches this call.
@joplin/app-desktop:   Overload 1 of 2, '(props: Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
@joplin/app-desktop:     Type '{ children: (string | Element)[]; maxWidth: number; type: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'maxWidth' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:   Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">, string | JSXElementConstructor<...>>', gave the following error.
@joplin/app-desktop:     Type '{ children: (string | Element)[]; maxWidth: number; type: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'maxWidth' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop: gui/MainScreen/MainScreen.tsx(825,57): error TS2322: Type '{ themeId: number; noteIds: any; onClose: () => void; }' is not assignable to type 'IntrinsicAttributes & (Omit<unknown, never> | (Pick<Omit<unknown, never>, never> & Pick<InferProps<unknown>, never>) | (Pick<Pick<Omit<...>, never> & Pick<...>, never> & Partial<...> & Partial<...>) | (Pick<...> & ... 1 more ... & Partial<...>))'.
@joplin/app-desktop:   Property 'themeId' does not exist on type 'IntrinsicAttributes & (Omit<unknown, never> | (Pick<Omit<unknown, never>, never> & Pick<InferProps<unknown>, never>) | (Pick<Pick<Omit<...>, never> & Pick<...>, never> & Partial<...> & Partial<...>) | (Pick<...> & ... 1 more ... & Partial<...>))'.
@joplin/app-desktop: gui/MainScreen/MainScreen.tsx(826,61): error TS2322: Type '{ themeId: number; folderId: string; onClose: () => void; }' is not assignable to type 'IntrinsicAttributes & (Omit<unknown, never> | (Pick<Omit<unknown, never>, never> & Pick<InferProps<unknown>, never>) | (Pick<Pick<Omit<...>, never> & Pick<...>, never> & Partial<...> & Partial<...>) | (Pick<...> & ... 1 more ... & Partial<...>))'.
@joplin/app-desktop:   Property 'themeId' does not exist on type 'IntrinsicAttributes & (Omit<unknown, never> | (Pick<Omit<unknown, never>, never> & Pick<InferProps<unknown>, never>) | (Pick<Pick<Omit<...>, never> & Pick<...>, never> & Partial<...> & Partial<...>) | (Pick<...> & ... 1 more ... & Partial<...>))'.
@joplin/app-desktop: gui/ResizableLayout/ResizableLayout.tsx(103,38): error TS2769: No overload matches this call.
@joplin/app-desktop:   Overload 1 of 2, '(props: Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }, "style"> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
@joplin/app-desktop:     Type '{ children: any[]; key: string; size: Size; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }, "style"> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'size' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }, "style"> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:   Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, { style: { width: any; height: any; }; }, "style", "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, { style: { width: any; height: any; }; }, "style", "div", "div">, string | JSXElementConstructor<...>>', gave the following error.
@joplin/app-desktop:     Type '{ children: any[]; key: string; size: Size; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }, "style"> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'size' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }, "style"> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop: gui/ShareFolderDialog/ShareFolderDialog.tsx(48,37): error TS2339: Property 'index' does not exist on type 'ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & { ...; }, any>'.
@joplin/app-desktop: gui/ShareFolderDialog/ShareFolderDialog.tsx(245,48): error TS2769: No overload matches this call.
@joplin/app-desktop:   Overload 1 of 2, '(props: Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
@joplin/app-desktop:     Type '{ children: Element[]; key: string; index: number; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'index' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | 
keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:   Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">, string | JSXElementConstructor<...>>', gave the following error.
@joplin/app-desktop:     Type '{ children: Element[]; key: string; index: number; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'index' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | 
keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop: gui/ShareFolderDialog/ShareFolderDialog.tsx(270,17): error TS2769: No overload matches this call.
@joplin/app-desktop:   Overload 1 of 2, '(props: Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
@joplin/app-desktop:     Type '{ children: string; type: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'type' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:   Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">, string | JSXElementConstructor<...>>', gave the following error.
@joplin/app-desktop:     Type '{ children: string; type: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop:       Property 'type' does not exist on type 'IntrinsicAttributes & Omit<Omit<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<...>> & { ...; }, never> & Partial<...>, "theme"> & { ...; } & { ...; }'.
@joplin/app-desktop: gui/style/StyledMessage.tsx(5,37): error TS2339: Property 'type' does not exist on type 'ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & { ...; }, any>'.
@joplin/app-desktop: gui/style/StyledMessage.tsx(9,28): error TS2339: Property 'type' does not exist on type 'ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & { ...; } & object, any>'.
@joplin/app-desktop: services/plugins/UserWebview.tsx(141,10): error TS2769: No overload matches this call.
@joplin/app-desktop:   Overload 1 of 2, '(props: Omit<Omit<Pick<DetailedHTMLProps<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, "key" | keyof IframeHTMLAttributes<...>> & { ...; } & Props, never> & Partial<...>, "theme"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
@joplin/app-desktop:     Type '{ id: string; width: number; height: number; fitToContent: boolean; ref: MutableRefObject<any>; src: string; borderBottom: boolean; }' is missing the following properties from type 'Omit<Omit<Pick<DetailedHTMLProps<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, "key" | keyof IframeHTMLAttributes<...>> & { ...; } & Props, never> & Partial<...>, "theme">': html, scripts, themeId, pluginId, viewId
@joplin/app-desktop:   Overload 2 of 2, '(props: StyledComponentPropsWithAs<"iframe", any, Props, never, "iframe", "iframe">): ReactElement<StyledComponentPropsWithAs<"iframe", any, Props, never, "iframe", "iframe">, string | JSXElementConstructor<...>>', gave the following error.
@joplin/app-desktop:     Type '{ id: string; width: number; height: number; fitToContent: boolean; ref: MutableRefObject<any>; src: string; borderBottom: boolean; }' is missing the following properties from type 'Omit<Omit<Pick<DetailedHTMLProps<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, "key" | keyof IframeHTMLAttributes<...>> & { ...; } & Props, never> & Partial<...>, "theme">': html, scripts, themeId, pluginId, viewId
@joplin/app-desktop: ../lib/services/ExternalEditWatcher.ts(264,7): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?
@joplin/app-desktop: npm ERR! code ELIFECYCLE
@joplin/app-desktop: npm ERR! errno 2
@joplin/app-desktop: npm ERR! @joplin/app-desktop@2.0.4 tsc: `node node_modules/typescript/bin/tsc --project tsconfig.json`
@joplin/app-desktop: npm ERR! Exit status 2
@joplin/app-desktop: npm ERR!
@joplin/app-desktop: npm ERR! Failed at the @joplin/app-desktop@2.0.4 tsc script.
@joplin/app-desktop: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@joplin/app-desktop: npm ERR! A complete log of this run can be found in:
@joplin/app-desktop: npm ERR!     /home/siddharth963/.npm/_logs/2021-06-09T15_47_34_651Z-debug.log
lerna ERR! npm run tsc exited 2 in '@joplin/app-desktop'
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ tsc: `lerna run tsc --stream --parallel`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ tsc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/siddharth963/.npm/_logs/2021-06-09T15_47_34_708Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ build: `lerna run build && npm run tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/siddharth963/.npm/_logs/2021-06-09T15_47_34_752Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! root@ postinstall: `npm run bootstrap --no-ci && npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the root@ postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/siddharth963/.npm/_logs/2021-06-09T15_47_34_831Z-debug.log
siddharth963@LAPTOP-E32OVF97:/mnt/d/web-dev/web-dev4/joplin$ 

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