adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

Cannot install adminjs 6.1.1

Open dmastag opened this issue 3 years ago • 4 comments

Describe the bug I tried to install the latest adminjs to an existing nestjs project using and on an empty express project On both instances when I do npm install -E adminjs, it doesn't finish and show a lot of logs saying that reactjs missmatch

If I instead install [email protected] or [email protected] then the Installation works as expected

Installed libraries and their versions

To Reproduce Steps to reproduce the behavior:

  1. npm init -y
  2. npm install -E adminjs

Expected behavior It is expected that adminjs can be installed

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information if relevant):

  • OS: Tested on Windows 10 and MacOS 12

dmastag avatar Aug 14 '22 04:08 dmastag

We've recently updated to React 18 while a lot of libraries still use React 16 or 17 as their peer dependencies. We replaced the outdated ones with alternatives where possible but for others we have to wait for them to be updated. react-currency-input-field works correctly with React 18 despite peer dependency error so you can ignore it. You'd either have to force install packages if using npm:

$ npm install --force

or simply switch to yarn:

$ yarn install

dziraf avatar Aug 16 '22 07:08 dziraf

i have same issue ..with node v16

scalpovich avatar Aug 16 '22 20:08 scalpovich

I am having the same issue. Any eta on resolution?

osubeaver808 avatar Sep 11 '22 23:09 osubeaver808

These errors come from other libraries that haven't been updated to React 18. AdminJS wilk work fine if you use yarn or force install using npm as stated above.

dziraf avatar Sep 12 '22 05:09 dziraf