I am getting the following error when attempting to dynamically load within a babel compiled component:
TypeError: require.resolveWeak is not a function
The compiled contents looks like so:
var AuthMenu = (0, _dynamic.default)(function () {
return _promise.default.resolve().then(function () {
return (0, _interopRequireWildcard2.default)(require("@connect/web-auth/lib/container/AuthMenu/AuthMenu"));
});
}, {
loadableGenerated: {
webpack: function webpack() {
return [require.resolveWeak("@connect/web-auth/lib/container/AuthMenu/AuthMenu")];
},
modules: ["@connect/web-auth/lib/container/AuthMenu/AuthMenu"]
}
});
I am wondering if this package supports this scenario?
I am getting the following error when attempting to dynamically load within a babel compiled component:
The compiled contents looks like so:
I am wondering if this package supports this scenario?