etkachev / nx-webstorm

Plugin for Webstorm that strives to function the same as Nx Console for VsCode. UI for Nx
MIT License
35 stars 4 forks source link

Support for yarn plug'n'play #83

Open Person-93 opened 2 years ago

Person-93 commented 2 years ago

Current Behavior

Generators are not found in workspaces configured for yarn Plug'n'Play.

How to Reproduce

Steps to reproduce the behavior:

  1. Create a new workspace
  2. Run yarn set version berry
  3. Delete the node_modules folder
  4. Make sure the .yarnrc.yml file does not have nodeLinker: node_modules
  5. Run yarn install
  6. Open IDE and go to the nx tab

Expected Behavior

I expect to see a list of available generators

Desktop (please complete the following information):

Additional Context

The nx cli works fine.

etkachev commented 2 years ago

Hello and Happy New Year! I can take a look and try to see what I can do. Thanks

Person-93 commented 2 years ago

Hello and Happy New Year! I can take a look and try to see what I can do. Thanks

Happy new year to you as well.

I looked into it a bit more, and nx does not support yarn plug'n'play nearly as well as I'd thought. A lot of things rely on imports from packages that they transitively depend on, and that breaks with the newer versions of yarn.

I appreciate that you're willing to support that use case but until nx actually works well with it, it's probably not worth your time.

etkachev commented 2 years ago

I see. I can see if Nrwl might have any plans regarding this.

etkachev commented 2 years ago

@Person-93 are you able to open a feature request on the Nx Repo so that someone from Nx team may look at it? For Nx to support yarn plug n play.

Person-93 commented 2 years ago

@etkachev, there's an issue that's been open for about a year. There's an active PR to upgrade to make it work with yarn 2 and 3, I'd imagine plug'n'play support would come after that.

etkachev commented 2 years ago

Just following up... That PR never got merged in? Is it expected to not be supported for the meantime?

etkachev commented 1 year ago

I also wanted to let you know about slowly deprecating this plugin in favor for the official on by Nrwl: https://plugins.jetbrains.com/plugin/21060-nx-console