Yann Mulonda
1 min readJun 12, 2019

--

Hi Marc,

I think this error has to do with some import files in your Angular project.

If you got onto this error message, it means that it’s not a Same-origin issue. As said in the error message, the real problem is that modules scripts require the MIME of your script file to be one of the javascript MIME types. Your filesystem doesn’t provide any MIME, hence the loading fails.

This is an example of someone who fixed that error on StackOverflow:

He had an import statement bringing an object from a different file, which I did via this line:

import { Cell } from './modules/Cell';

What broke the code and caused the MIME type error was not having .js appended to the end of ./modules/Cell.

The updated line fixed my problem:

import { Cell } from './modules/Cell.js';

I don’t know what version of Angular you’re using but try to google that error. Also, check out a couple of fixes suggestion on StackOverflow

--

--

Yann Mulonda
Yann Mulonda

Written by Yann Mulonda

Co-Founder & CIO @ITOT | DevOps | Senior Site Reliability Engineer @ICF󠁧󠁢󠁳󠁣󠁴 | "Learning is experience; everything else is just information!”

Responses (1)