Closed VaidotasSm closed 2 years ago
Try add it babel-plugin-universal-import
in the package, not in the workspace.
@kevinjobs yes, I did that and it worked (as described in Workaround section of the bug report). I went to root/workspaces/static-app
and installed babel-plugin-universal-import
from there.
However although workaround exists it is still confusing and I'm unsure how confident I'm with this.
babel-plugin-universal-import@4.x.x
is required by react-static
, but has issues in my yarn workspaces
setup (even when installed from non-root workspace package.babel-plugin-universal-import@3.x.x
works, but since ^4.0.0
is required, some other issue may arise since v3
does not have something?
Issue
I have
yarn workspaces
project. Duringreact-static build
I get following errors:react-static
depends onbabel-plugin-universal-import
and it is resolved tobabel-plugin-universal-import@4.0.2
.Workaround
When I go to workspace containing
react-static
project and doyarn install babel-plugin-universal-import
(resolves tobabel-plugin-universal-import@3.1.3
) - build works fine.Environment