import-cost icon indicating copy to clipboard operation
import-cost copied to clipboard

Not working with Yarn PnP

Open dstoyanoff opened this issue 2 years ago • 3 comments

Hello, I have a project using Yarn workspace with Yarn PnP (no node_modules).

The plugin isn't displaying anything next to the imports.

Yarn: 3.0.1 Node: 16.5.0

dstoyanoff avatar Aug 31 '21 09:08 dstoyanoff

At a quick glance this is probably due to it expecting dependencies to live in node_modules: https://github.com/wix/import-cost/blob/8dee985c00766fe33beb8bcff97af81420b2e3ff/packages/import-cost/src/utils.js#L33

NMinhNguyen avatar Feb 03 '22 18:02 NMinhNguyen

please fix this issue @yairhaimo @shahata

ko-devHong avatar Jun 19 '23 02:06 ko-devHong

Yea can further confirm that this does not work with Yarn PnP. Maybe a setting needs to be added for the extension to look in yarn cache which is where PnP stores dependencies?

liamlows avatar Oct 03 '23 21:10 liamlows