pavlobu / deskreen

Deskreen turns any device with a web browser into a secondary screen for your computer. ⭐️ Star to support our work!
https://deskreen.com
GNU Affero General Public License v3.0
16.4k stars 882 forks source link

Build from source fails. #181

Open RafayAK opened 2 years ago

RafayAK commented 2 years ago

Prerequisites

Expected Behavior

Running the command cd app/client; yarn install --frozen-lockfile ; cd ../../ ; yarn install --frozen-lockfile should build the app, it fails

Current Behavior

deskreen $ cd app/client; yarn install --frozen-lockfile ; cd ../../ ; yarn install --frozen-lockfile
yarn install v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
warning " > react-test-renderer@17.0.1" has incorrect peer dependency "react@17.0.1".
[4/4] Building fresh packages...
Done in 50.87s.
yarn install v1.22.17
$ node ./internals/scripts/CheckYarn.js
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > connected-react-router@6.8.0" has unmet peer dependency "immutable@^3.8.1 || ^4.0.0-rc.1".
warning " > connected-react-router@6.8.0" has unmet peer dependency "react-router@^4.3.1 || ^5.0.0".
warning " > connected-react-router@6.8.0" has unmet peer dependency "seamless-immutable@^7.1.3".
warning " > browserslist-config-erb@0.0.1" has incorrect peer dependency "electron@^7.0.0".
warning " > eslint-config-airbnb@18.2.1" has incorrect peer dependency "eslint-plugin-jsx-a11y@^6.4.1".
warning " > eslint-config-erb@1.0.0" has incorrect peer dependency "eslint-config-airbnb-typescript@^8.0.2".
warning " > eslint-config-erb@1.0.0" has unmet peer dependency "eslint-plugin-flowtype@^5.1.3".
warning " > eslint-config-erb@1.0.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@6.2.3".
[4/4] Building fresh packages...
$ node -r @babel/register internals/scripts/CheckNativeDep.js && electron-builder install-app-deps && yarn build-dll && opencollective-postinstall
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating

 Webpack does not work with native dependencies.
@blueprintjs/core, @blueprintjs/select, @fortawesome/fontawesome-free, @hot-loader/react-dom, @material-ui/core, @reduxjs/toolkit, axios, classnames, clsx, connected-react-router, electron-debug, electron-log, electron-settings, electron-updater, electron, express, fontsource-lexend-peta, get-port, history, i18next-fs-backend, i18next-node-fs-backend, i18next-sync-fs-backend, i18next, internal-ip, kcors, koa-router, koa-send, koa-static, koa, node-forge, qrcode.react, react-awesome-reveal, react-dom, react-flexbox-grid, react-hot-loader, react-i18next, react-qrcode-logo, react-redux, react-reveal, react-router-dom, react-toast-notifications, react-toastify, react, redux-thunk, redux, regenerator-runtime, shortid, simple-peer, socket.io-client, socket.io, source-map-support, winston are native dependencies and should be installed inside of the "./app" folder.
 First, uninstall the packages from "./package.json":
yarn remove your-package
 Then, instead of installing the package to the root "./package.json":
yarn add your-package
 Install the package to "./app/package.json"
cd ./app && yarn add your-package
 Read more about native dependencies at:
https://electron-react-boilerplate.js.org/docs/adding-dependencies/#module-structure

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

build from source fails

Steps to Reproduce

clone repository and build using the command: cd app/client; yarn install --frozen-lockfile ; cd ../../ ; yarn install --frozen-lockfile

Possible Solution (Not obligatory)

Context

I'm trying to implement some sort of Wayland support into Deskreen

No

Your Environment

seffs commented 2 years ago

I remember seeing something like this in my first attempts, but it didn't really affect the build itself. It must be something related to the outdated dependencies. Try re-cloning the project and run:

cd app/client; yarn install --frozen-lockfile ; cd ../../ ; yarn install --frozen-lockfile; cd app/; yarn install --frozen-lockfile; cd ../; yarn dev