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
We are using SystemJS for our React micro-frontend SPA. Recent updates of react-router-dom broke our setup. The minimal examples below lead me to believe that the issue is on SystemJS' side rather than ours or that of react-router-dom.
This logs the following keys: ['6', 'default', '__useDefault'] - in particular, none of the actual exports of the module.
Expected Behavior
The module should have all the expected exports. This works fine with versions <6.22.0 of react-router-dom, so if you change 6.23.1 to e.g. 6.21.3 above.
It also works fine with this non-SystemJS version of the minimal example, again using UMD builds:
It looks like any kind of write access on the window object leads to similar results. If I change the value of the version, the resulting module changes accordingly. I also tried Object.assign, leading to the same result.
The code itself looks harmless though, leading me to believe that the issue is on the SystemJS side. Unfortunately, I lack the detailed knowledge to debug the SystemJS internals and would therefore appreciate your support.
The text was updated successfully, but these errors were encountered:
We are using SystemJS for our React micro-frontend SPA. Recent updates of
react-router-dom
broke our setup. The minimal examples below lead me to believe that the issue is on SystemJS' side rather than ours or that ofreact-router-dom
.Demonstration
Here is a minimal example of broken code:
This logs the following keys:
['6', 'default', '__useDefault']
- in particular, none of the actual exports of the module.Expected Behavior
The module should have all the expected exports. This works fine with versions <6.22.0 of
react-router-dom
, so if you change6.23.1
to e.g.6.21.3
above.It also works fine with this non-SystemJS version of the minimal example, again using UMD builds:
Actual Behavior
See Demonstration.
Initial Analysis
The problem is the introduction of the following code snippet in the
react-router-dom
code:It looks like any kind of write access on the window object leads to similar results. If I change the value of the version, the resulting module changes accordingly. I also tried
Object.assign
, leading to the same result.The code itself looks harmless though, leading me to believe that the issue is on the SystemJS side. Unfortunately, I lack the detailed knowledge to debug the SystemJS internals and would therefore appreciate your support.
The text was updated successfully, but these errors were encountered: