You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of our projects, we're still using the old kadira:flow-router@2.12.1. It works for us well and we don't feel the urge to migrate off it. But now I wanted to update our project to the latest pre-2.6 version (we're still behind the schedule with the MongoDB driver), and it fails.
The error says "redirect needs to be done in sync", and comes from runTriggers.
Now, here's the minified code from 2.4.1:
h.runTriggers=function(t,e,r,n){for(vari=!1,o=!0,a=!1,s=0;s<t.length;s++){varu;if((0,t[s])(e,c,p),i)return}functionc(t,e,n){if(a)thrownewError("already redirected");if(!o)thrownewError("redirect needs to be done in sync");if(!t)thrownewError("trigger redirect requires an URL");i=!0,a=!0,r(t,e,n)}functionp(){i=!0}o=!1,n()}
And from 2.5.8:
h.runTriggers=function(t,e,r,n){for(vari=!1,o=!0,a=!1,s=0;s<t.length;s++){varu;if((0,t[s])(e,c,p),i)return}functionc(t,e,r){if(a)thrownewError("already redirected");thrownewError("redirect needs to be done in sync")}functionp(){i=!0}o=!1,n()}
Most importantly, variable o vanishes in the latter. We're using zodern:standard-minifier-js@4.1.1, but the same happens with standard-minifier-js@2.8.0. (Downgrading them causes different errors.)
The text was updated successfully, but these errors were encountered:
OK, it worked, thanks! We can close it as the workaround is pretty straightforward (although I couldn't find #11756 while looking for an existing report).
In one of our projects, we're still using the old
kadira:flow-router@2.12.1
. It works for us well and we don't feel the urge to migrate off it. But now I wanted to update our project to the latest pre-2.6 version (we're still behind the schedule with the MongoDB driver), and it fails.The error says "redirect needs to be done in sync", and comes from
runTriggers
.Now, here's the minified code from 2.4.1:
And from 2.5.8:
Most importantly, variable
o
vanishes in the latter. We're usingzodern:standard-minifier-js@4.1.1
, but the same happens withstandard-minifier-js@2.8.0
. (Downgrading them causes different errors.)The text was updated successfully, but these errors were encountered: