Answer the question
In order to leave comments, you need to log in
How to connect the JS module correctly?
When connecting the module in the console, the error is:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
information.php
<script src="js/editor.js" type="module"></script>
editor.js
import Base64UploadAdapter from '../@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.js';
Answer the question
In order to leave comments, you need to log in
Man, if you don't know English, use google translate.
Let me do this for you:
Failed to load module script: A JavaScript module script was expected, but the server responded with a MIME type of "text/html". For module scripts, strict MIME type checking is applied according to the HTML specification.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question