-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
CSS import from sibling package inside monorepo fails #10373
Comments
Some observations in case it could be helpful:
|
First of all thanks to @ikornienko for the POC. We also faced this issue when upgrading from 3.4.4 to 4.0.3 Since the bug was created on 12/01/21 i revive the topic. I think this is a quite important bug as regard of yarn workspaces and css. Has anyone a workaround meanwhile ? |
Up |
i'm running into what i think is a similar problem in my project, trying to upgrade from react-scripts from 3.4.2 -> 4.0.2. the project has a directory of assets within the @ikornienko i'm wondering if this change in behavior is from adding |
Hi all, one year later, I'm still seeing the same issue with Importing |
Describe the bug
CSS imports like
break the build when
@my-company/package1
is a sibling monorepo package, where monorepo is controlled by yarn workspaces.It's a regression / change in behavior comparing to
react-scripts@3
.Environment
Steps to reproduce
yarn workspaces
monorepoyarn create react-app
index.css
import CSS from a sibling package using syntax@import '~scope/sibling-package/file.css';
See react-scripts-4-import-monorepo-package-css-issue for a reproducible demo.
Expected behavior
Build works fine and
react-scripts@4
is able to build the application same asreact-scripts@3
does it.Actual behavior
Build error:
Reproducible demo
Please find it in react-scripts-4-import-monorepo-package-css-issue, the README there explains the demo in details.
The text was updated successfully, but these errors were encountered: