plate icon indicating copy to clipboard operation
plate copied to clipboard

npm could not resolve dependency when installing slate-plugins 1.0.0-alpha.*

Open sebdec opened this issue 3 years ago • 6 comments

Description

Dependencies problems when installing new version of slate-plugins (^1.0.0-alpha.*):

Could not resolve dependency:
peer react@">=16.8.0 <17.0.0" from @uifabric/[email protected]

Steps

To reproduce the behavior: on new project

  1. npm i slate slate-react slate-history slate-hyperscript react react-dom
  2. npm i @udecode/slate-plugins
  3. error: npm ERR! ERESOLVE unable to resolve dependency tree

Environment

"react": "^17.0.2",
"react-dom": "^17.0.2",
"slate": "^0.62.1",
"slate-history": "^0.62.0",
"slate-hyperscript": "^0.62.0",
"slate-react": "^0.62.1"

attempting to install slate-plugins

sebdec avatar May 06 '21 07:05 sebdec

Is it happening also in sandbox? I'll upgrade @uifabric dependencies

zbeyens avatar May 06 '21 12:05 zbeyens

the sandbox works correctly at https://codesandbox.io/s/slate-plugins-playground-v1-2mh1c But when I download the code in zip, npm install gives me the same error. maybe because of the npm version ? I am using 7.11.2

sebdec avatar May 06 '21 12:05 sebdec

I'm using yarn

zbeyens avatar May 06 '21 13:05 zbeyens

it works with yarn 🤨

sebdec avatar May 06 '21 13:05 sebdec

I think just because it works with yarn, it does not stop being a bug / issue for npm users..

ghingis avatar Jul 08 '21 08:07 ghingis

Is it fixed?

ksydex avatar Jun 22 '22 11:06 ksydex