Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when yarn's version plugin is installed #477

Open
jeffrson opened this issue Mar 22, 2022 · 6 comments
Open

Crash when yarn's version plugin is installed #477

jeffrson opened this issue Mar 22, 2022 · 6 comments
Labels
bug Something isn't working external

Comments

@jeffrson
Copy link

Describe the bug

yarn monodeploy is crashing, when yarn's version plugin is installed.

To reproduce

yarn plugin import version
yarn monodeploy --dry-run

Expected behavior

No crash - should work

  • OS: [e.g. Ubuntu 20.04, Mac OSX 10.14]: Win10, Debian11
  • Monodeploy Version: [e.g. 1.0] 2.8.20
  • Node Version: [e.g. 12.16.1] 17.7.2
@noahnu
Copy link
Contributor

noahnu commented Mar 23, 2022

What's your use case for using monodeploy alongside the version plugin? They're typically mutually exclusive. Either way, it definitely shouldn't crash. I'll take a look.

What version of yarn are you using? (I need to add this to the issue template 😄)

I'm working on a v3 release, so I wonder if it works with the v3 pre-release. If it does, I can backport the relevant fixes.

@jeffrson
Copy link
Author

Sure, the version plugin is not needed. It's been just my repository setup when I tried monodeploy.

I'm not happy with "version" because of what you call "implicit" dependencies. That's why I look into monodeploy, which seems pretty good (although it doesn't really work for me - that's the point of my question "how does it work").

I'm using yarn 3.2.0 (current stable).

@noahnu noahnu added the bug Something isn't working label Apr 10, 2022
@noahnu
Copy link
Contributor

noahnu commented Apr 24, 2022

I can reproduce on v3:

TypeError: Cannot read properties of undefined (reading 'fetchBase') (when initializing @yarnpkg/plugin-version, defined in /Users/noah/repos/repo/.yarnrc.yml)

@noahnu
Copy link
Contributor

noahnu commented Apr 24, 2022

Looks like the same issue as yarnpkg/berry#3857

@freshollie
Copy link

I'm getting a similar error with https://github.com/mhassan1/yarn-plugin-aws-codeartifact

TypeError: Cannot read properties of undefined (reading 'RegistryType') (when initializing @yarnpkg/plugin-aws-codeartifact

Comes from line

@noahnu
Copy link
Contributor

noahnu commented Mar 31, 2024

Monodeploy has been forked under a new name Monoweave. I've copied your issue over and will address it in the monoweave project.

monoweave/monoweave#82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external
Projects
None yet
Development

No branches or pull requests

3 participants