Hello,
When I try to generate a whitestar character, the generator fails at the envirnment step. Basically the page onlly shows the logo and background.
In the developer tools of MS Edge I get the following errors:
- uncaught type error: cannot read property 0 of undefined in “new t” at line 15 of MC.js
- Uncaught invariant violation: Minified React error at line 1 of mc.js
- Uncaught type error: cannot read property getHostNode of null in mc.js line 1
Can anyone at Modiphius solve it?
EDIT:
The first error is here:
function(e) {
function t(t) {
var a = e.call(this, t) || this;
(a._regions = c.EnvironmentsHelper.getRegions(o.character.heritage, o.character.environment),
a._region = a._regions[0],
o.character.hasSource(g.Source.Imperial) || o.character.faction === w.Faction.Imperial) || c.EnvironmentsHelper.getEnvironment(o.character.environment).equipment.forEach(function(e) {
e.indexOf("|") > -1 && (a._equipment = e.split("|")[0])
});
return a
}
The second one is here:
function(e, t, a) {
“use strict”;
e.exports = function(e) {
for (var t = arguments.length - 1, a = “Minified React error #” + e + “; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=” + e, n = 0; n < t; n++)
a += “&args[]=” + encodeURIComponent(arguments[n + 1]);
a += " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
var r = new Error(a);
throw r.name = “Invariant Violation”,
r.framesToPop = 1,
r
}
}
The last one is here:
getHostNode: function(e) {
return e.getHostNode()
},
PS:
Who writes all the functions together in a single array? Wouldn’t it be better to split the mc.js into multiple files instead of having a single file of almost 33000 lines of code?