[Stencil] Error on Nexus 5X / Android 8.1 only

(copy/paste of the same question I added on the slack channel)

I include a StencilJS component I’ve built in a Ionic app. While debugging locally, everything alright. Tested on a real iPhone, ok. Tested on Samsung Edge/Android 6, ok but on my Nexus 5X/Android 8.1 I face the following error:

Failed to load module script: The server responded with a non-JavaScript MIME type of “”. Strict MIME type checking is enforced for module scripts per HTML spec.

Does that say something to someone?

I could add that it looks like that this phone doesn’t like the javascript code generated from the following tsx file https://github.com/peterpeterparker/web-photo-filter/blob/master/src/types/web-photo-filter/web-photo-filter-type.tsx

static method not well supported on Android 8.1?

and the generated js file which throw the error Dropbox - File Deleted - Simplify your life

I think it has nothing to do with static class but more because there is a problem on Android 8.1 and serving the file locally. Maybe something related to this

I have opened an issue

I just commented the issue I opened because I was able to reproduce the problem while trying to import the https://github.com/ionic-team/stencil-component-starter without changing a single line of code

so

a. the way I import a component in an Ionic project is not correct

or

b. there is problem