At least i made it with a workaround on the error in platform/javascript/os_javascript.cpp
The problem was in this method
EM_BOOL OS_JavaScript::mouse_button_callback(int p_event_type, const EmscriptenMouseEvent p_event, void p_user_data) {
OS_JavaScript *os = get_singleton();
Ref<InputEventMouseButton> ev;
ev.instance();
ev->set_pressed(p_event_type == EMSCRIPTEN_EVENT_MOUSEDOWN);
ev->set_position(correct_canvas_position(p_event->canvasX, p_event->canvasY));
ev->set_global_position(ev->get_position());
dom2godot_mod(p_event, ev);
switch (p_event->button) {
case DOM_BUTTON_LEFT: ev->set_button_index(BUTTON_LEFT); break;
case DOM_BUTTON_MIDDLE: ev->set_button_index(BUTTON_MIDDLE); break;
case DOM_BUTTON_RIGHT: ev->set_button_index(BUTTON_RIGHT); break;
case DOM_BUTTON_XBUTTON1: ev->set_button_index(BUTTON_XBUTTON1); break;
case DOM_BUTTON_XBUTTON2: ev->set_button_index(BUTTON_XBUTTON2); break;
default: return false;
}
if (ev->is_pressed()) {
// uint64_t diff = p_event->timestamp - os->last_click_ms;
//HACK!!!
uint64_t diff = 500;
so with hacking out timestamp i could completely compile the export-template.
So everything worked since then including exporting a project to HTML5
The only thing not working yet is including my custom module which only spits out errors in the browser
SCRIPT ERROR: Parse Error: Identifier 'CalculatorRef' is not declared in the current scope. 2D in 3D.js:7:32612
At: built-in:6:GDScript::reload() - Parse Error: Identifier 'CalculatorRef' is not declared in the current scope. 2D in 3D.js:7:32612
ERROR: Method/Function Failed, returning: ERR_PARSE_ERROR 2D in 3D.js:7:32612
At: modules/gdscript/gdscript.cpp:580:reload() - Method/Function Failed, returning: ERR_PARSE_ERROR 2D in 3D.js:7:32612
Any idea?