question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I followed the steps from https://electron-react-boilerplate.js.org/docs/installation/ and ran into a peer dependency error

See original GitHub issue

Prerequisites

  • Using yarn
  • Using node 10.x
  • Using an up-to-date master branch
  • Using latest version of devtools. See wiki for howto update
  • Link to stacktrace in a Gist (for bugs)
  • For issue in production release, devtools output of DEBUG_PROD=true yarn build && yarn start
  • Tried solutions mentioned in #400

Expected Behavior

When I run

git clone --depth=1 https://github.com/electron-react-boilerplate/electron-react-boilerplate your-project-name
cd your-project-name
yarn

I expected dependencies to be installed successfully

Current Behavior

Instead I get

   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-typescript > eslint-config-airbnb@18.1.0" has incorrect peer dependency "eslint@^5.16.0 || ^6.8.0".
   warning "eslint-config-airbnb-typescript > eslint-config-airbnb@18.1.0" has incorrect peer dependency "eslint-plugin-react-hooks@^2.5.0 || ^1.7.0".
   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
   npm ERR! peer dep missing: electron@^7.0.0, required by browserslist-config-erb@0.0.1
   npm ERR! peer dep missing: eslint-plugin-jsx-a11y@6.2.3, required by eslint-config-erb@1.0.0
   npm ERR! peer dep missing: immutable@^3.8.1 || ^4.0.0-rc.1, required by connected-react-router@6.8.0
   npm ERR! peer dep missing: seamless-immutable@^7.1.3, required by connected-react-router@6.8.0
   npm ERR! peer dep missing: eslint-plugin-flowtype@^5.1.3, required by eslint-config-erb@1.0.0
   npm ERR! peer dep missing: eslint@^5.16.0 || ^6.8.0, required by eslint-config-airbnb@18.1.0
   npm ERR! peer dep missing: eslint-plugin-react-hooks@^2.5.0 || ^1.7.0, required by eslint-config-airbnb@18.1.0

This might be pretty easy to solve, but I’m new to electron.js so I’m not sure what to do

Possible Solution

Steps to Reproduce (for bugs)

  1. I’ve tried it multiple times and whenever I run

git clone --depth=1 https://github.com/electron-react-boilerplate/electron-react-boilerplate your-project-name cd your-project-name yarn

I get those warnings and errors

Context

I want to make sure that I’m installing it properly

Your Environment

  • Node version : v14.5.0
  • Version or Branch used : master
  • Operating System and version : MacOS Catalina 10.15.5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Mehugecommented, Jul 27, 2020

I am having the same issue.

Yarn version was 1.12.3. So I updated yarn using (npm i -g yarn) and now have version 1.22.4. I still get the same issue.

D:\DEV\your-project-name>yarn --version
1.22.4

D:\DEV\your-project-name>yarn
yarn install v1.22.4
$ node ./internals/scripts/CheckYarn.js
[1/4] �  Resolving packages...
[2/4] �  Fetching packages...
info fsevents@2.1.3: The platform "win32" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[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-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
npm ERR! peer dep missing: electron@^7.0.0, required by browserslist-config-erb@0.0.1
npm ERR! peer dep missing: eslint-config-airbnb-typescript@^8.0.2, required by eslint-config-erb@1.0.0
npm ERR! peer dep missing: eslint-plugin-jsx-a11y@6.2.3, required by eslint-config-erb@1.0.0
npm ERR! peer dep missing: immutable@^3.8.1 || ^4.0.0-rc.1, required by connected-react-router@6.8.0
npm ERR! peer dep missing: seamless-immutable@^7.1.3, required by connected-react-router@6.8.0
npm ERR! peer dep missing: eslint-plugin-flowtype@^5.1.3, required by eslint-config-erb@1.0.0
npm ERR! peer dep missing: node-sass@^4.0.0, required by sass-loader@9.0.2
npm ERR! peer dep missing: sass@^1.3.0, required by sass-loader@9.0.2
npm ERR! peer dep missing: fibers@>= 3.1.0, required by sass-loader@9.0.2
npm ERR! peer dep missing: canvas@^2.5.0, required by jsdom@16.3.0
npm ERR! peer dep missing: bufferutil@^4.0.1, required by ws@7.3.1
npm ERR! peer dep missing: utf-8-validate@^5.0.2, required by ws@7.3.1
Native dependencies could not be checked
  • electron-builder  version=22.7.0
  • loaded configuration  file=package.json ("build" field)
  • installing production dependencies  platform=win32 arch=x64 appDir=D:\DEV\alien-ui\your-project-name\app
  ⨯ C:\Program Files (x86)\nodejs\node.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Output:

Output:
yarn install v1.22.4
[1/4] Resolving packages...
success Already up-to-date.
$ yarn electron-rebuild
yarn run v1.22.4
info If you think this is a bug, please open a bug report with the information provided in "D:\\DEV\\alien-ui\\your-project-name\\app\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Error output:

Error output:
error An unexpected error occurred: "Cannot create property '-registry-npmjs-org' on string '{\"-registry-npmjs-org\":true}'".
error Command failed with exit code 1.
  stackTrace=
3reactions
GeorgeBarlowcommented, Sep 5, 2020

None of these solutions worked for me, anyone got any way to resolve this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve peer dependency error: The package react ...
it worked when i updated npm "npm install npm -g" and then downgraded react to; "react": "15.3.0" , cleared cache: npm cache clear...
Read more >
Javascript | Package Hub
GraphicsJS is a lightweight JavaScript graphics library with the intuitive API, based on SVG/VML technology. Overview; Quick Start; Articles; Building ...
Read more >
ERROR setting up boilerplate app using create-react-app
Creating a new React app in G:\My Drive\Coding\Projects\myfirstreactapp. Installing packages. This might take a couple of minutes.
Read more >
electron-react-boilerplate-dll-issue from muscaiu - GithubHelp
Note: If you can't use yarn for some reason, try npm install . Run. Start the app in the dev environment. This starts...
Read more >
Electron React Boilerplate electron-react-boilerplate Issues
electron -react-boilerplate/electron-react-boilerplate Issues · Many issues with eslint running "npm install" - How come? · How to load . · Github Actions Test ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found