A simple fix for me that wasn't listed here was this:
I 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';
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…