FYI I ran into a conflict with Reporter last night as well. Not trying to hijack the thread, just posting here in case it aids troubleshooting. Was just testing out how to use Tim's libInline script for processing inline rolls. I use the 5e OGL sheet, but don't think we're getting that far as it is a compile error. Here the code snippet. I know revealing module is overkill for this, but it's just the template I had handy :) The code compiles and works fine unless I have Reporter installed (1-click version). const LibInlineTest = (() => {
const version = '0.1.0';
const checkInstall = () => {
log('-=> NAME v'+version+' <=-');
};
const handleInput_libInlineTest = (msg) => {
if (msg.type !== "api" && msg.content.indexOf("!libtest") === 0 ) {
return;
}
let parsedInlines = libInline.getRollData(msg);
log(parsedInlines);
parsedInlines.forEach((inline) => {
log(inline.getDice('all'));
log(inline.getRollTip());
log(inline.getTableValues());
});
};
const registerEventHandlers = () => {
on('chat:message', handleInput_libInlineTest);
};
on('ready', () => {
checkInstall();
registerEventHandlers();
// Make sure libInline exists, and has the functions that are expected
if('undefined' === typeof libInline
|| (['getRollData','getDice','getValue', 'getParsed', 'getRollTip', 'getTables'].find(k=>
!libInline.hasOwnProperty(k) || 'function' !== typeof libInline[k]
))
) {
// notify of the missing library
sendChat('',`/w gm <div style="color:red;font-weight:bold;border:2px solid red;background-color:black;border-radius:1em;padding:1em;">Missing dependency: libInline</div>`);
}
});
})(); Here's the crash error