-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Simply depending on @rails/webpacker isn't enough? Possibly need to add all dependencies to package.json #1537
Comments
I've ran into the same thing and did a quick check with npm ( As I'm a bit short on time right now, I didn't investigate further and simply pinned everything to 3.2.2, but something seems to have changed between those versions that Yarn doesn't like. But that's just a hunch :) |
Not sure why this was closed @jakeNiemiec. Yarn is moving towards the PnP system that explicitly prevents accessing dependencies of another package, see https://yarnpkg.com/en/docs/pnp/troubleshooting |
@swrobel See the Yarn Plug’n’Play ticket. We can focus there on eliminating the reliance on cross package boundaries in this file: webpacker/lib/install/template.rb Lines 37 to 46 in 8481614
Additionally, webpacker was a very different tool back when this was posted. There have been updates to both the webpacker and node.js sides of the problem. If you want to keep this open, could you post updated info about what packages are still missing in |
I've had a very confusing conversation with the yarn team on this issue which has led them to indicate that all dependencies that are directly used by a project need to be in package.json, they can't simply be implied by being dependencies of another package in package.json. This particular issue caused
babel-loader
to not be available to my app after usingyarn upgrade
.The text was updated successfully, but these errors were encountered: