-
-
Notifications
You must be signed in to change notification settings - Fork 372
Fix test:* scripts
#22
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
Conversation
|
this is weird - it's working locally for me. the |
|
Right? It looked like it should have worked as it was, but I fresh-cloned three times and was the same every time. Have you done a fresh install of all deps recently? I can only guess that a package patch-bump introduced a regression of some kind. |
|
I'll check, was thinking the same thing. I don't dare attempt an |
|
FYI: Getting same error using yarn to install dependencies. Basically running creates same error. |
|
thinking it's related to module flattening then. I'll use yarn to repro since I can't get my npm to produce the issue. |
|
Maybe. But before you reinstall everything, can you shrink wrap your current setup and send that to me? I don't mind chasing down bumped dependencies to see what's changed. |
|
Ok, so I've run docker images installing creating an app and running build (both npm & yarn). Sometimes npm fails and sometimes yarn doesn't fail. Latest npm The issue occurs because postcss-modules-resolve-imports has peer dependency on postcss set to >= 5 and it doesn't work with postcss@^6.0.0. Some packages import postcss@^5.0.0 others postcss@^6.0.0. Now here's the funky part - it seems that both yarn and npm are nondeterministic and different versions are placed in different places. Anyway I've createa a PR to fix this at postcss-modules-resolve-imports css-modules/postcss-modules-resolve-imports#17 P.S. |
|
All scripts now work thanks to @rkostrzewski's change in #31 & @developit's latest |
|
@rkostrzewski you're a genius |
I have to leave my desk, but I'll get back to this later.
The
--cwdflag was throwing errors on all scripts. Babel did not accept it as a valid argument.As per @developit's suggestion, I tried passing it behind a
--stop, but doing so setenv.srcequal to'--cwd', which ofc broke thesrchelper.Currently, the
test:watchscript now works. However, all other commands fail becausetest:buildfails with:Following the suggestion (at the top),
postcss-lessimports5.2.xwhich causes the mismatch.I'll get back to this later tonight if no one else already knows the solution!