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
{{ message }}
Repository navigation
With a circular dependency, TypeError: Cannot redefine property from the bundler #705
TypeError: Cannot redefine property: a
at Function.defineProperty (<anonymous>)
at evaluate (https://61zjk5n05k.codesandbox.io/src/index.js:9:8)
at r.a (https://codesandbox.io/static/js/sandbox.37512735.js:5359:971)
at e.value (https://codesandbox.io/static/js/sandbox.37512735.js:5418:270)
at https://codesandbox.io/static/js/sandbox.37512735.js:5391:22872
at Array.forEach (<anonymous>)
at e.value (https://codesandbox.io/static/js/sandbox.37512735.js:5391:22843)
at https://codesandbox.io/static/js/sandbox.37512735.js:3877:8157
at t (https://codesandbox.io/static/js/common-sandbox.a360099a.js:1937:811)
at Generator._invoke (https://codesandbox.io/static/js/common-sandbox.a360099a.js:1937:599)
at Generator.e.(anonymous function) [as next] (https://codesandbox.io/static/js/common-sandbox.a360099a.js:1937:990)
at n (https://codesandbox.io/static/js/common-sandbox.a360099a.js:2110:316)
at https://codesandbox.io/static/js/common-sandbox.a360099a.js:2110:412
Interesting, I'm getting a different error: (0 , _.a) is not a function.
Which is intended behavior I think since on initial run a should export {}.
I'm on a phone right now, but I can debug further tomorrow!
Yes, I expected a to be undefined, this sandbox is supposed to illustrate circular dependency issue, but stumbled upon this when I finished the code on desktop.
I'm on mobile (Android Chrome) now, too, and this sandbox is stuck on the loading screen.
The earlier redefine error is certainly possible. We do Hot Module Replacement when you make changes, so in that case a.js could already have been evaluated before b.js was created. A full refresh should still give the a is undefined error though.
Activity
CompuIves commentedon Apr 7, 2018
sompylasar commentedon Apr 8, 2018
Yes, I expected
ato beundefined, this sandbox is supposed to illustrate circular dependency issue, but stumbled upon this when I finished the code on desktop.I'm on mobile (Android Chrome) now, too, and this sandbox is stuck on the loading screen.

CompuIves commentedon Apr 8, 2018
Hm weird, this is what I'm getting:
The earlier redefine error is certainly possible. We do Hot Module Replacement when you make changes, so in that case
a.jscould already have been evaluated beforeb.jswas created. A full refresh should still give thea is undefinederror though.lbogdan commentedon Mar 28, 2019
Closing this, as it's expected behavior. @sompylasar Feel free to reopen if you still have issues.