Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

slydor/reproduction-devexpress-dx-core-peer-dependency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update

The core issue is fixed with v4.0.9 and this repository is not needed anymore. See the tracking issue of DevExpress: https://supportcenter.devexpress.com/ticket/details/t1250987/reactive-yn0002-warning-appears-on-an-attempt-to-restore-the-dx-react-chart-package-with

Reproduction repository

This project reproduces an issue of peer dependencies in @devexpress packages in combination with yarn workspace packages.

When run yarn install, it will warn with:

➤ YN0000: ┌ Resolution step
➤ YN0002: │ @devexpress/dx-react-chart@npm:4.0.8 [3a687] doesn't provide @devexpress/dx-core (pab92a), requested by @devexpress/dx-chart-core
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code

And yarn explain peer-requirements pab92a yields:

➤ YN0000: @devexpress/dx-react-chart@npm:4.0.8 [3a687] doesn't provide @devexpress/dx-core, breaking the following requirements:

➤ YN0000: @devexpress/dx-chart-core@npm:4.0.8 [8b493] → 4.0.8 ✘

Workaround

Adding this to .yarnrc.yml hot fixes the issue:

packageExtensions:
  # This is a workaround until https://supportcenter.devexpress.com/ticket/details/t1250227/peer-dependency-not-specified-properly-from-dx-react-chart-to-dx-core is fixed.
  '@devexpress/[email protected]':
    peerDependencies:
      '@devexpress/dx-core': '4.0.8'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published