Integrate <myscript-math-web> into my own software following MyScript's instructions. Error thrown.
N
Niklas Vennemann
started a topic
over 3 years ago
I am trying to integrate <myscript-math-web> into my own software. I followed the instructions on MyScript's website. With the exception that I don't work with polymer, but with XAMPP (htdocs). I run into the following two errors: "Uncaught SyntaxError: Unexpected token '<' (webcomponents-loader.js:3)" and "Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. (myscript-math-web.js:1)".
The part of the software that I wrote myself still works.
I have done some research on this, but I was unable to solve the problem.
OS: Windows 10,
programming languages and technologies that I am currently using: php, JS, HTML, CSS, npm, Node.JS (installed on my computer), XAMPP (htdocs). I am not using an express server.
Browser: Google Chrome
Best Answer
O
Olivier @MyScript
said
over 3 years ago
Dear Niklas,
Thank you for contacting us and your question.
Currently, in order to investigate further, we would need more information about your implementation. When you say, "I have done some research on this, but I was unable to solve the problem.", what did you do in your code:
As you see, these issues look like problems in your code, whihc we invite you to investigate.
Also, please note we do not recommend you start a new project with the myscript-math-web (whihc we no longer plan to support), but use the MyScriptJS instead.
Best regards,
Olivier
1 Comment
O
Olivier @MyScript
said
over 3 years ago
Answer
Dear Niklas,
Thank you for contacting us and your question.
Currently, in order to investigate further, we would need more information about your implementation. When you say, "I have done some research on this, but I was unable to solve the problem.", what did you do in your code:
As you see, these issues look like problems in your code, whihc we invite you to investigate.
Also, please note we do not recommend you start a new project with the myscript-math-web (whihc we no longer plan to support), but use the MyScriptJS instead.
Niklas Vennemann
I am trying to integrate <myscript-math-web> into my own software. I followed the instructions on MyScript's website. With the exception that I don't work with polymer, but with XAMPP (htdocs). I run into the following two errors: "Uncaught SyntaxError: Unexpected token '<' (webcomponents-loader.js:3)" and "Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. (myscript-math-web.js:1)".
The part of the software that I wrote myself still works.
I have done some research on this, but I was unable to solve the problem.
OS: Windows 10,
programming languages and technologies that I am currently using: php, JS, HTML, CSS, npm, Node.JS (installed on my computer), XAMPP (htdocs). I am not using an express server.
Browser: Google Chrome
Dear Niklas,
Thank you for contacting us and your question.
Currently, in order to investigate further, we would need more information about your implementation. When you say, "I have done some research on this, but I was unable to solve the problem.", what did you do in your code:
-The first error can indeed have several causes:
https://stackoverflow.com/questions/3143698/uncaught-syntaxerror-unexpected-token
https://idiallo.com/javascript/uncaught-syntaxerror-unexpected-token#n
...
-For the second: https://stackoverflow.com/questions/47403478/es6-modules-in-local-files-the-server-responded-with-a-non-javascript-mime-typ
As you see, these issues look like problems in your code, whihc we invite you to investigate.
Also, please note we do not recommend you start a new project with the myscript-math-web (whihc we no longer plan to support), but use the MyScriptJS instead.
Best regards,
Olivier
Olivier @MyScript
Dear Niklas,
Thank you for contacting us and your question.
Currently, in order to investigate further, we would need more information about your implementation. When you say, "I have done some research on this, but I was unable to solve the problem.", what did you do in your code:
-The first error can indeed have several causes:
https://stackoverflow.com/questions/3143698/uncaught-syntaxerror-unexpected-token
https://idiallo.com/javascript/uncaught-syntaxerror-unexpected-token#n
...
-For the second: https://stackoverflow.com/questions/47403478/es6-modules-in-local-files-the-server-responded-with-a-non-javascript-mime-typ
As you see, these issues look like problems in your code, whihc we invite you to investigate.
Also, please note we do not recommend you start a new project with the myscript-math-web (whihc we no longer plan to support), but use the MyScriptJS instead.
Best regards,
Olivier