-
-
Notifications
You must be signed in to change notification settings - Fork 15
1.2.5 triggers circular reference in grunt config #13
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
Comments
Please provides more informations. It seems you are using postcss-calc so postcss. So your config might help to track down this issue. |
Btw, your stack trace does not contains postcss or reduce-css-calc... |
Yeah. The exception happens when I'm running a task that doesn't involve postcss at all, so it's very confusing. I'm still working on a replication case; I've confirmed on two machines that 1.2.4 works and 1.2.5 throws the exception. |
OK it seems to only happen with multi tasks. I was using jshint but I made a custom one and I can still reproduce it. I reduced it as far as removing the postcss configuration; all you have to do is require Gruntfile (just tested in an empty directory):
Then run:
|
hmm, I looked at your change and the only thing it really did was pull in that math project, so on a hunch I commented out the |
Found it - the bug is in the |
What version of node are you using? |
I'm on version 6, our build server is version 5. |
we have similar errors with our gulp tasks, it seems to be related to the polyfill, like @TheSpyder already mentioned:
|
From what I understand it's more a bug that should be reported in "math-expression-evaluator" right? |
poke @ankit31894 |
Maybe this snippet is the culprit https://github.com/redhivesoftware/math-expression-evaluator/blob/d6a82d8225232bbcb33246dc2337ca3a524adc99/src/postfix.js#L3-L11 |
The test should be "Array.prototype.indexOf"? |
It's more than that - the implementation is wrong too. I found time to do a PR, just coding up a test now. |
Thank you! |
@MoOx we use
|
Same problem here, can we revert deps |
No need for ask for this in multiple places. |
If the patch is not merged today, I will fix the version in postcss-calc until it's merged/released. |
If you guys can try this bugwheels94/math-expression-evaluator#2 (comment) and if that's ok, I can add this into reduce-css-calc as a workaround until the "official" fix gets merged/released. |
Upstream has been fixed, deleting |
I haven't created a cut down replication case for this yet, but while I do I thought you might want to start looking into it.
Stack trace from grunt:
Analysing my build server logs, the only change in my node dependencies is:
and I confirmed rolling back to 1.2.4 resolves the grunt error.
The text was updated successfully, but these errors were encountered: