-
Notifications
You must be signed in to change notification settings - Fork 70
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
Error Plugin: oclif: could not find package.json with ... '@oclif/plugin-warn-if-update-available' #329
Comments
@strophy Thank you for moving forward with the new version of oclif/core. Looking at the PR, the changes you made to the deps around oclif seem correct. I cloned the repo and gave the I will try to get this project setup as described in the readme, with appropriate versions of tools installed to see if I can reproduce the error you are seeing. |
@strophy I think I have things configured properly, but running into this error while running
|
Thanks for the quick response! I ran the following:
After installing a few more system-level dependencies, I can now build installers! But our project is built around yarn 3 and the more complex commands like What are the plans to upgrade oclif to use yarn 2/3? It's a fascinating project and we are making increasingly heavy use of it, I'd like to help, with testing or anything else! |
That's great news. I will raise the subject of yarn 2/3 with the team. |
Yarn 3 + PnP will really be a big help for many. Any plans on this? |
Hi @peternhale any update on plans to support yarn 3? Or an outline of what work is required, so I could maybe attempt a PR? This support would allow us to release standalone binaries of our CLI :) |
I just tried updating ts-node to the latest (10.8.1 as of this), and that seems to have solved the OCLIF/Yarn 3 problems I was having. (I was running ts-node 10.2.something...) I updated ts-node with: I got this from: https://stackoverflow.com/a/72528793 Almost forgot... I also put:
at the top of the |
We have yarn 2/3 support on our backlog. However, I cannot give a timeline at this time. We're always open to contributions though - so anyone should feel free to attempt this work! |
Hi @mdonnalley please don't close this issue, since the work has not been completed yet and myself and other people are monitoring the issue to get alerts when it is actually complete. I'm interested in contributing a PR myself, and I asked @peternhale above for an outline of the required work. Maybe you can respond to that question? |
@mdonnalley is the backlog for this project publicly available somewhere? Should I open a new issue so I can continue to follow progress on this? |
I am trying to migrate to
@oclif/core
for a CLI contained in a monorepo using yarn 3 as a package manager in order to try and use theoclif pack
functionality to package the CLI as an installer. You can see how I modified thepackage.json
for the CLI here - first question, do these changes look correct?My issue is that when trying to run
yarn oclif manifest
inside the CLI directory, I get the following error:This dependency comes from
"oclif": "^2.1.0"
and doesn't seem to be properly resolved by yarn. I tried adding the following to.yarnrc.yml
like this:and/or
But the error remains. Can anyone help identify what is going wrong here?
The text was updated successfully, but these errors were encountered: