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
If I set "addDefaultProperty" to true, module.exports = exports['default']; module.exports.default = exports['default'] will be added, which means module.exports.default may circular reference itself.
It will lead to circular reference problem when I try to JSON.stringify(module.exports).
The text was updated successfully, but these errors were encountered:
At any rate, it’s a necessary part of this transform - require has to bring in the default, but .default on it has to be the default too. In other words, I’d file an issue on prop-types for relying on something that’s unsafe with cycles for the error message :-)
If I set "addDefaultProperty" to true,
module.exports = exports['default']; module.exports.default = exports['default']
will be added, which meansmodule.exports.default
may circular reference itself.It will lead to circular reference problem when I try to
JSON.stringify(module.exports)
.The text was updated successfully, but these errors were encountered: