mhassan1 / yarn-plugin-licenses

Yarn Berry plugin that adds `yarn licenses` commands
39 stars 11 forks source link

Bug: no such file to open --recursive #23

Closed raDiesle closed 10 months ago

raDiesle commented 1 year ago

Got this ony my machine with yarn3 and pnp.

yarn licenses list --recursive Internal Error: ENOENT: no such file or directory, open '/home/react-ui/.yarn/unplugged/fsevents-patch-fcdf30aaca/node_modules/fsevents/package.json' Error: ENOENT: no such file or directory, open '/home/react-ui/.yarn/unplugged/fsevents-patch-fcdf30aaca/node_modules/fsevents/package.json'

mhassan1 commented 1 year ago

Can you please provide steps to reproduce?

raDiesle commented 1 year ago

Let me ask like this: does yarn-plugin licenses support yarn berry pnp strict mode?

I can try to reproduce, but I am assume its not supported pnp?

mhassan1 commented 1 year ago

Yes, it supports PnP; see integration tests here.

auberryberry commented 1 year ago

I'm seeing similar errors ironically for the same fsevents library, maybe it just needs error handling around package.json not existing?

mhassan1 commented 1 year ago

Please provide steps to reproduce, i.e. yarn -v, sample package.json, version of this plugin, OS, etc. I can't reproduce with yarn@3.2.3 on Mac OS and v0.8.1 of this plugin.

mhassan1 commented 1 year ago

@raDiesle @auberryberry Are you still hitting this issue? I'd like to help, but I'll need some reproduction steps.