signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.51k stars 2.63k forks source link

src/components/ArtFrame.tsx(201,10): error TS2786: 'PopperManager' cannot be used as a JSX component. #6935

Closed kpcyrd closed 2 months ago

kpcyrd commented 2 months ago

Using a supported version?

Overall summary

Starting with the latest version I'm having trouble building from source.

Earlier during the yarn install steps there's some errors logged about patches failing to apply:

``` Git LFS initialized. yarn install v1.22.22 info No lockfile found. warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... (node:1873) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) warning protobufjs-cli > glob@8.1.0: Glob versions prior to v9 are no longer supported warning protobufjs-cli > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning eslint > @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead warning eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning eslint > file-entry-cache > flat-cache > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported warning eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead [2/4] Fetching packages... [3/4] Linking dependencies... warning " > focus-trap-react@10.1.1" has unmet peer dependency "prop-types@^15.8.1". [4/4] Building fresh packages... success Saved lockfile. Done in 37.26s. yarn install v1.22.22 info No lockfile found. warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/5] Resolving packages... (node:1918) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) warning fabric > jsdom > abab@2.0.6: Use your platform's native atob() and btoa() methods instead warning fabric > jsdom > data-urls > abab@2.0.6: Use your platform's native atob() and btoa() methods instead warning fabric > jsdom > domexception@1.0.1: Use your platform's native DOMException instead warning fabric > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning fabric > jsdom > request > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning fabric > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 warning fabric > jsdom > w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. warning fabric > jsdom > w3c-xmlserializer > domexception@1.0.1: Use your platform's native DOMException instead warning fabric > canvas > @mapbox/node-pre-gyp > npmlog@5.0.1: This package is no longer supported. warning fabric > canvas > @mapbox/node-pre-gyp > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning fabric > jsdom > request > har-validator@5.1.5: this library is no longer supported warning fabric > canvas > @mapbox/node-pre-gyp > npmlog > gauge@3.0.2: This package is no longer supported. warning fabric > canvas > @mapbox/node-pre-gyp > npmlog > are-we-there-yet@2.0.0: This package is no longer supported. warning fabric > canvas > @mapbox/node-pre-gyp > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported warning fabric > canvas > @mapbox/node-pre-gyp > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning glob@7.1.6: Glob versions prior to v9 are no longer supported warning glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning mac-screen-capture-permissions > prebuild-install > npmlog@4.1.2: This package is no longer supported. warning mac-screen-capture-permissions > prebuild-install > npmlog > gauge@2.7.4: This package is no longer supported. warning mac-screen-capture-permissions > prebuild-install > npmlog > are-we-there-yet@1.1.7: This package is no longer supported. warning react-router-dom > react-router > mini-create-react-context@0.3.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning rimraf@2.6.2: Rimraf versions prior to v4 are no longer supported warning rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported warning uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning uuid-browser@3.1.0: Package no longer supported and required. Use the uuid package or crypto.randomUUID instead warning @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. warning @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead. warning @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead. warning @mixer/parallel-prettier > glob-stream > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @mixer/parallel-prettier > glob-stream > unique-stream > through2-filter@3.1.0: this package has been deprecated for breaking semver major warning @storybook/jest > @storybook/expect@28.1.3-5: In Storybook 8, this package functionality has been integrated to a new package called @storybook/test, which uses Vitest APIs for an improved experience. When upgrading to Storybook 8 with 'npx storybook@latest upgrade', you will get prompted and will get an automigration for the new package. Please migrate when you can. warning @storybook/react-webpack5 > @storybook/preset-react-webpack > @storybook/react-docgen-typescript-plugin > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning @storybook/react-webpack5 > @storybook/preset-react-webpack > babel-plugin-react-docgen > react-docgen > estree-to-babel > c8 > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning @storybook/react-webpack5 > @storybook/builder-webpack5 > fork-ts-checker-webpack-plugin > memfs@3.6.0: this will be v4 warning @storybook/react-webpack5 > @storybook/builder-webpack5 > webpack-dev-middleware > memfs@3.6.0: this will be v4 warning @storybook/react-webpack5 > @storybook/preset-react-webpack > babel-plugin-react-docgen > react-docgen > estree-to-babel > c8 > test-exclude > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @storybook/test-runner > jest-playwright-preset > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning @storybook/test-runner > nyc > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @storybook/test-runner > nyc > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning @storybook/test-runner > jest-circus > jest-runtime > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @storybook/test-runner > nyc > spawn-wrap > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning @storybook/test-runner > nyc > istanbul-lib-processinfo > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning @storybook/test-runner > jest > jest-cli > jest-config > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @storybook/test-runner > jest > @jest/core > @jest/reporters > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @storybook/testing-library@0.2.2: In Storybook 8, this package functionality has been integrated to a new package called @storybook/test, which uses Vitest APIs for an improved experience. When upgrading to Storybook 8 with 'npx storybook@latest upgrade', you will get prompted and will get an automigration for the new package. Please migrate when you can. warning @types/react-router-dom > @types/history@5.0.0: This is a stub types definition. history provides its own type definitions, so you do not need this installed. warning asar@3.1.0: Please use @electron/asar moving forward. There is no API change, just a package name change warning asar > glob@7.2.3: Glob versions prior to v9 are no longer supported warning babel-plugin-lodash > glob@7.2.3: Glob versions prior to v9 are no longer supported warning core-js@2.6.9: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. warning danger > @gitbeaker/node@35.8.1: Please use its successor @gitbeaker/rest warning electron-builder > app-builder-lib > @electron/universal > @electron/asar > glob@7.2.3: Glob versions prior to v9 are no longer supported warning electron-mocha > mocha > glob@8.1.0: Glob versions prior to v9 are no longer supported warning electron-mocha > mocha > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning eslint > @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead warning mocha > glob@7.2.0: Glob versions prior to v9 are no longer supported warning mocha > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning patch-package > rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported warning patch-package > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported warning protobufjs-cli > glob@8.1.0: Glob versions prior to v9 are no longer supported warning sinon@11.1.1: 16.1.1 warning storybook > @storybook/cli > puppeteer-core > rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported warning storybook > @storybook/cli > tempy > del > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning storybook > @storybook/cli > jscodeshift > temp > rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported warning storybook > @storybook/cli > jscodeshift > temp > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported warning typed-scss-modules > glob@7.2.3: Glob versions prior to v9 are no longer supported warning unzipper > fstream@1.0.12: This package is no longer supported. warning unzipper > fstream > rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported warning webpack-dev-server > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning webpack-dev-server > webpack-dev-middleware > memfs@3.6.0: this will be v4 [2/5] Fetching packages... [3/5] Linking dependencies... warning " > focus-trap-react@8.8.1" has unmet peer dependency "prop-types@^15.7.2". warning " > react-contextmenu@2.11.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.1". warning " > react-contextmenu@2.11.0" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.1". warning " > react-contextmenu@2.11.0" has unmet peer dependency "prop-types@^15.0.0". warning " > react-virtualized@9.22.3" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha". warning " > react-virtualized@9.22.3" has incorrect peer dependency "react-dom@^15.3.0 || ^16.0.0-alpha". warning " > css-loader@3.2.0" has incorrect peer dependency "webpack@^4.0.0". warning "electron-builder > app-builder-lib@24.13.3" has unmet peer dependency "electron-builder-squirrel-windows@24.13.3". warning " > endanger@7.0.4" has incorrect peer dependency "danger@^10.5.3". warning " > style-loader@1.0.0" has incorrect peer dependency "webpack@^4.0.0". warning "stylelint-config-recommended-scss > postcss-scss@4.0.9" has unmet peer dependency "postcss@^8.4.29". [4/5] Building fresh packages... [5/5] Cleaning modules... success Saved lockfile. $ npm run build:acknowledgments && patch-package && npm run electron:install-app-deps > signal-desktop@7.15.0 build:acknowledgments > node scripts/generate-acknowledgments.js patch-package 8.0.0 Applying patches... @formatjs/intl@2.6.7 ✔ @storybook/manager-api@7.4.5 ✔ @storybook/router@7.4.5 ✔ @types/backbone@1.4.16 ✔ @types/blueimp-load-image@5.14.1 ✔ @types/express@4.17.18 ✔ @types/fabric@4.5.3 ✔ @types/jest@28.1.3 ✔ @types/node@18.15.11 ✔ @types/node-fetch@2.6.2 ✔ app-builder-lib@24.13.3 ✔ backbone@1.4.0 ✔ casual@1.6.2 ✔ dmg-builder@24.13.3 ✔ electron-util@0.13.1 ✔ fabric@4.6.0 ✔ got@11.8.5 ✔ mac-screen-capture-permissions@2.0.0 ✔ node-fetch@2.6.7 ✔ protobufjs@7.3.2 ✔ protobufjs-cli@1.1.1 ✔ proxy-agent@6.3.0 ✔ qrcode-generator@1.4.4 ✔ quill@1.3.7 ✔ react-aria-components@1.0.0-alpha.3 ✔ react-blurhash@0.1.2 ✔ react-contextmenu@2.11.0 ✔ react-textarea-autosize@8.3.4 ✔ websocket@1.0.34 ✔ Warning: patch-package detected a patch file version mismatch Don't worry! This is probably fine. The patch was still applied successfully. Here's the deets: Patch file created for @types/express@4.17.18 applied to @types/express@4.17.21 At path node_modules/@types/express This warning is just to give you a heads-up. There is a small chance of breakage even though the patch was applied successfully. Make sure the package still behaves like you expect (you wrote tests, right?) and then run patch-package @types/express to update the version in the patch file name and make this warning go away. **ERROR** Failed to apply patch for package nan at path node_modules/nan This error was caused because nan has changed since you made the patch file for it. This introduced conflicts with your patch, just like a merge conflict in Git when separate incompatible changes are made to the same piece of code. Maybe this means your patch file is no longer necessary, in which case hooray! Just delete it! Otherwise, you need to generate a new patch file. To generate a new one, just repeat the steps you made to generate the first one. i.e. manually make the appropriate file changes, then run patch-package nan Info: Patch file: patches/nan+2.18.0.patch Patch was made for version: 2.18.0 Installed version: 2.20.0 **ERROR** Failed to apply patch for package socks-proxy-agent at path node_modules/socks-proxy-agent This error was caused because socks-proxy-agent has changed since you made the patch file for it. This introduced conflicts with your patch, just like a merge conflict in Git when separate incompatible changes are made to the same piece of code. Maybe this means your patch file is no longer necessary, in which case hooray! Just delete it! Otherwise, you need to generate a new patch file. To generate a new one, just repeat the steps you made to generate the first one. i.e. manually make the appropriate file changes, then run patch-package socks-proxy-agent Info: Patch file: patches/socks-proxy-agent+8.0.1.patch Patch was made for version: 8.0.1 Installed version: 8.0.4 --- patch-package finished with 1 warning(s), 2 error(s). > signal-desktop@7.15.0 electron:install-app-deps > electron-builder install-app-deps • electron-builder version=24.13.3 • loaded configuration file=package.json ("build" field) • rebuilding native dependencies dependencies=@nodert-win10-rs4/windows.data.xml.dom@0.4.4, @nodert-win10-rs4/windows.ui.notifications@0.4.4, @signalapp/better-sqlite3@8.7.1, @signalapp/windows-dummy-keystroke@1.0.0, bufferutil@4.0.8, canvas@2.11.2, fs-xattr@0.3.0, mac-screen-capture-permissions@2.0.0, utf-8-validate@5.0.10 platform=linux arch=x64 • install prebuilt binary name=mac-screen-capture-permissions version=2.0.0 platform=linux arch=x64 napi= • build native dependency from sources name=mac-screen-capture-permissions version=2.0.0 platform=linux arch=x64 napi= reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information) error=/build/signal-desktop/src/Signal-Desktop-7.15.0/node_modules/node-abi/index.js:36 throw new Error('Could not detect abi for version ' + target + ' and runtime ' + runtime + '. Updating "node-abi" might help solve this issue if it is a new release of ' + runtime) ^ Error: Could not detect abi for version 30.0.9 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron at getAbi (/build/signal-desktop/src/Signal-Desktop-7.15.0/node_modules/node-abi/index.js:36:9) at module.exports (/build/signal-desktop/src/Signal-Desktop-7.15.0/node_modules/prebuild-install/rc.js:52:57) at Object. (/build/signal-desktop/src/Signal-Desktop-7.15.0/node_modules/prebuild-install/bin.js:8:25) at Module._compile (node:internal/modules/cjs/loader:1467:14) at Module._extensions..js (node:internal/modules/cjs/loader:1551:10) at Module.load (node:internal/modules/cjs/loader:1282:32) at Module._load (node:internal/modules/cjs/loader:1098:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:215:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:5) Node.js v22.4.0 • rebuilding native dependency name=@nodert-win10-rs4/windows.ui.notifications version=0.4.4 • rebuilding native dependency name=@nodert-win10-rs4/windows.data.xml.dom version=0.4.4 • rebuilding native dependency name=@signalapp/windows-dummy-keystroke version=1.0.0 • rebuilding native dependency name=@signalapp/better-sqlite3 version=8.7.1 • rebuilding native dependency name=canvas version=2.11.2 • rebuilding native dependency name=bufferutil version=4.0.8 • rebuilding native dependency name=fs-xattr version=0.3.0 • rebuilding native dependency name=mac-screen-capture-permissions version=2.0.0 • rebuilding native dependency name=utf-8-validate version=5.0.10 • cannot build optional native dependency name=fs-xattr version=0.3.0 cause=exit status 1 errorOut=npm error Missing script: "install" npm error npm error Did you mean this? npm error npm uninstall # Remove a package npm error npm error To see a list of scripts, run: npm error npm run npm error A complete log of this run can be found in: /build/.npm/_logs/2024-07-06T15_52_21_591Z-debug-0.log command=/usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js run install workingDir=/build/signal-desktop/src/Signal-Desktop-7.15.0/node_modules/fs-xattr Done in 301.08s. ``` ### Steps to reproduce ``` git lfs install yarn --cwd ./sticker-creator/ install yarn install --ignore-engines yarn --cwd ./sticker-creator/ build ```

Expected result

Builds successfully

Actual result

The build eventually fails with this error:

yarn run v1.22.22
$ npm run build:protos && tsc && vite build --base=./

> signal-art-creator@0.0.0 build:protos
> pbjs --target static-module --force-number --no-typeurl --no-delimited --no-verify --no-create --no-convert --wrap es6 --out src/util/protos.js ./protos/*.proto && pbts --out src/util/protos.d.ts src/util/protos.js

src/components/ArtFrame.tsx(201,10): error TS2786: 'PopperManager' cannot be used as a JSX component.
  Its instance type 'Manager' is not a valid JSX element.
src/components/ArtFrame.tsx(202,12): error TS2786: 'PopperReference' cannot be used as a JSX component.
  Its instance type 'Reference' is not a valid JSX element.
src/components/ArtFrame.tsx(216,17): error TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactNode'.
src/components/ArtFrame.tsx(216,18): error TS2786: 'Popper' cannot be used as a JSX component.
  Its instance type 'Popper<unknown>' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/build/signal-desktop/src/Signal-Desktop-7.15.0/sticker-creator/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode'.
src/components/ArtFrame.tsx(233,13): error TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactNode'.
  Type 'Element' is not assignable to type 'ReactPortal'.
src/components/ArtFrame.tsx(233,14): error TS2786: 'Popper' cannot be used as a JSX component.
  Its instance type 'Popper<"offset">' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/build/signal-desktop/src/Signal-Desktop-7.15.0/sticker-creator/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode'.
src/components/ArtFrame.tsx(265,6): error TS2786: 'PopperManager' cannot be used as a JSX component.
  Its instance type 'Manager' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/build/signal-desktop/src/Signal-Desktop-7.15.0/sticker-creator/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode'.
        Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
          Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.
src/components/ArtFrame.tsx(266,8): error TS2786: 'PopperReference' cannot be used as a JSX component.
  Its instance type 'Reference' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/build/signal-desktop/src/Signal-Desktop-7.15.0/sticker-creator/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode'.
src/components/ArtGrid.tsx(159,6): error TS2786: 'ReactSortable' cannot be used as a JSX component.
  Its instance type 'ReactSortable<ItemInterface>' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'Element' is not assignable to type 'ReactNode'.
src/components/ConfirmModal.tsx(18,5): error TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactNode'.
src/main.tsx(32,3): error TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactNode'.
src/routes/art/ShareStage.tsx(72,16): error TS2786: 'CopyText' cannot be used as a JSX component.
  Its element type 'ReactElement<any, any> | Component<Props, any, any> | null' is not a valid JSX element.
    Type 'Component<Props, any, any>' is not assignable to type 'Element | ElementClass | null'.
      Type 'Component<Props, any, any>' is not assignable to type 'ElementClass'.
        The types returned by 'render()' are incompatible between these types.
          Type 'React.ReactNode' is not assignable to type 'import("/build/signal-desktop/src/Signal-Desktop-7.15.0/sticker-creator/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode'.
src/routes/art/ShareStage.tsx(90,16): error TS2786: 'ShareButtons' cannot be used as a JSX component.
  Its element type 'ReactElement<any, any> | Component<Props, any, any> | null' is not a valid JSX element.
    Type 'Component<Props, any, any>' is not assignable to type 'Element | ElementClass | null'.
      Type 'Component<Props, any, any>' is not assignable to type 'ElementClass'.
        The types returned by 'render()' are incompatible between these types.
          Type 'React.ReactNode' is not assignable to type 'import("/build/signal-desktop/src/Signal-Desktop-7.15.0/sticker-creator/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode'.
src/util/i18n.ts(87,45): error TS2769: No overload matches this call.
  Overload 1 of 2, '(descriptor: MessageDescriptor, values?: Record<string, PrimitiveType | FormatXMLElementFn<string, string>> | undefined, opts?: Options | undefined): string', gave the following error.
    Argument of type 'Readonly<{ [key: string]: string | number | Element | undefined; }> | undefined' is not assignable to parameter of type 'Record<string, PrimitiveType | FormatXMLElementFn<string, string>> | undefined'.
      Type 'Readonly<{ [key: string]: string | number | Element | undefined; }>' is not assignable to type 'Record<string, PrimitiveType | FormatXMLElementFn<string, string>>'.
        'string' index signatures are incompatible.
          Type 'string | number | Element | undefined' is not assignable to type 'PrimitiveType | FormatXMLElementFn<string, string>'.
            Type 'Element' is not assignable to type 'PrimitiveType | FormatXMLElementFn<string, string>'.
  Overload 2 of 2, '(descriptor: MessageDescriptor, values?: Record<string, string | number | boolean | Date | ReactElement<any, string | JSXElementConstructor<any>> | ... 4 more ... | undefined> | undefined, opts?: Options | undefined): ReactNode | ReactNode[]', gave the following error.
    Argument of type 'Readonly<{ [key: string]: string | number | Element | undefined; }> | undefined' is not assignable to parameter of type 'Record<string, string | number | boolean | Date | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | FormatXMLElementFn<...> | null | undefined> | undefined'.
      Type 'Readonly<{ [key: string]: string | number | Element | undefined; }>' is not assignable to type 'Record<string, string | number | boolean | Date | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | FormatXMLElementFn<...> | null | undefined>'.
        'string' index signatures are incompatible.
          Type 'string | number | Element | undefined' is not assignable to type 'string | number | boolean | Date | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | FormatXMLElementFn<...> | null | undefined'.
            Type 'Element' is not assignable to type 'string | number | boolean | Date | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | FormatXMLElementFn<...> | null | undefined'.
              Property 'children' is missing in type 'Element' but required in type 'ReactPortal'.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Screenshots

No response

Signal version

7.15.0

Operating system

Arch Linux

Version of Signal on your phone

No response

Link to debug log

No response

micwoj92 commented 2 months ago

This now needs npm instead of yarn. Not upstream issue, PKGBUILD needs updates. https://github.com/signalapp/Signal-Desktop/commit/10e4455978829b48fb1f6251b392c2c59f6ea9c0

jamiebuilds-signal commented 2 months ago

@micwoj92 is correct, please replace yarn <script> and yarn run <script> commands with npm run <script> and let us know if you have any issues after

kpcyrd commented 2 months ago

I managed to fix the PKGBUILD using the yarn -> npm hin, I already had most of the change prepared, I now uploaded the new version to Arch Linux.

Thanks for the hints and sorry for the delay.