fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Bug]: @fluentui/react-file-type-icons has peerDependency of react <18 on npmjs

Open ilbrando opened this issue 4 years ago • 2 comments

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
    Memory: 18.81 GB / 31.38 GB
  Browsers:
    Chrome: 106.0.5249.119
    Edge: Spartan (44.19041.1266.0), Chromium (106.0.1370.47)
    Internet Explorer: 11.0.19041.1566

Are you reporting Accessibility issue?

No response

Reproduction

Se below

Bug Description

Actual Behavior

After upgrading to React 18 I get an error when running npm install

npm ERR! Could not resolve dependency:
npm ERR! peer react@">=16.8.0 <18.0.0" from @fluentui/[email protected]
npm ERR! node_modules/@fluentui/react-file-type-icons
npm ERR!   @fluentui/react-file-type-icons@"^8.7.10" from @advosys/[email protected]

In the package.json file in this repo the dependency appears to be < 19.0.0 but when I download the package from npmjs (line 10793) it is <18.0.0 which aligns with the error shown by npm install.

Expected Behavior

I expected the package to have a < 19.0.0 peer dependency to react.

Reproduction

In an empty folder:

$ npm init
$ npm install react@^18
$ npm install @fluentui/react-file-type-icons@^8.7.10

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] The provided reproduction is a minimal reproducible example of the bug.

ilbrando avatar Oct 20 '22 07:10 ilbrando

Could it be that the changes have been made in the repo (#25278) but they haven't been released in a new version yet?

ilbrando avatar Oct 20 '22 07:10 ilbrando

Yes the last build of 8.7.11 resolves the problem.

ilbrando avatar Oct 21 '22 10:10 ilbrando