Android not working Mapbox on ionic 4 with capacitor?

Hi,
I have a good working iOS en PWA app with Mapbox working.
But when trying to test it on my Android emulator: it doesn’t show anything and my Emulator just stops responding.
How can I debug this?
OR who can tell me what I do wrong / or should I do to make Mapbox JS GL work with Android?
This is how I add it: var mapboxgl = require('mapbox-gl/dist/mapbox-gl.js');

I have the same problem right now, did you ever find an answer?