-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
discussionDiscussion about the projectDiscussion about the project
Description
I'm attempting to migrate a project to the 2.0rc & use pnp but am running into tons of issues like so:
Module build failed (from ./.yarn/virtual/babel-loader-virtual-ec6f956c5b/0/cache/babel-loader-npm-8.0.6-ccc68d8d38.zip/node_modules/babel-loader/lib/index.js):
Error: A package is trying to access another package without the second one being listed as a dependency of the first one
Required package: babel-plugin-macros (via "babel-plugin-macros/package.json")
Required by: MyApp@workspace:.
I'm able to fix these by, in this example, running yarn add --dev babel-plugin-macros
but then another one pops up and so on & on this whac-a-mole goes with seemingly every babel plugin that's in babel-present-env
& required in my .babel.config.js
. Isn't it enough that they're bundled by virtue of being a second-order dependency, or do they really have to be a first-order dependency?
I apologize if this seems like a support request, but I genuinely just want to migrate a Rails/webpacker project to yarn 2 & document the process! Feel free to close if there's no time to deal w/ this.
Metadata
Metadata
Assignees
Labels
discussionDiscussion about the projectDiscussion about the project