-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
🐛 BUG: Not getting Astro to work using Yarn v3 (Berry) #3450
Comments
You need to use |
Thanks, but tried before I created the issue. It doesn't make a difference. But maybe I am placing the file in the wrong location. What should I do with the file exactly? |
@MartijnHarmenzon put it in the root of your project before calling |
@matthewp Unfortunately it did not work. I did the following steps:
The above results in the same errors. |
Update.. @aFuzzyBear @matthewp When adding the follwing to the .yarnrc.yml file as per this article
Astro is able to run the But when trying to run
Running the yarn install, as suggested, doesn't help. Any ideas? |
I'm not sure I can help any more, unfortunately. If you figure it out let us know and we'll update the documentation. fwiw I would recommend not using Yarn any more. pnpm provides similar features but is more compatible with the ecosystem. |
Hi @MartijnHarmenzon , right now the most suitable solution for getting Astro to work for Berry is to use node_modules for linking: nodeLinker: node-modules Since we need |
We've turned this into a docs issue, thanks for the suggestion @retronav! Going to track this further there: withastro/docs#700 |
What version of
astro
are you using?astro@1.0.0-beta.34
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
Yarn v3 Berry
What operating system are you using?
Windows
Describe the Bug
Hello. I am reporting you this issue after talking to @aFuzzyBear on Discord. link-to-thread
I would love to get Astro working with Yarn v3 (Berry). But when using the following steps:
This wil resolve in the following error:
Any ideas?
Link to Minimal Reproducible Example
https://martijnharm-astrotailwi-dq52nanes0o.ws-eu46.gitpod.io/
Participation
The text was updated successfully, but these errors were encountered: