-
Notifications
You must be signed in to change notification settings - Fork 80
Not working with Yarn Workspaces #317
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
Comments
According to the docs:
So maybe the problem is that
|
Ah, this is kind of a pain. Is there a way to use two plugin search directories? We're using buidler, which doesn't support having its deps hoisted, but also we're using prettier on all the packages, so we end up with two instances of prettier, one in our smart contracts package, and another hoisted one. We don't really want to install prettier-plugin-solidity in the workspace package json if we can avoid it, but I suppose we could have both if we have to. |
Just in case, buidler added support for workspaces in 1.4.5: NomicFoundation/hardhat#468 (comment) 🙂 |
Also, again according to the docs:
|
It was indeed our smart-contracts buidler package that has hoisting disabled for this exact reason, so looks like the easiest thing to do there is just upgrade buidler, then turn off the hoisting. |
it seems we can close this issue right @thekevinbrown ? thanks for your help @fvictorio |
Yup. |
Had the same problem when setting up a project with yarn v2. What worked for me was to set |
Somewhat related, with |
@JasoonS this appears to be an issue with prettier. prettier/prettier#9167 |
I'm seeing #196 with "prettier-plugin-solidity": "1.0.0-alpha.55" We're using yarn workspaces.
I can't share the source at the moment. Anything I can do to debug?
The text was updated successfully, but these errors were encountered: