How to add an external library to a C# azure functions application?

Adwait Naik 40 Reputation points
2024-04-30T12:36:59.1933333+00:00

Hi there,

I am trying to use a JavaScript based library in my azure functions application. I copied the file in the root directory of the app and deployed it successfully on Azure but the moment I reference it in the Index.html file, it throws this error.

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

This is the javascript library (urdf-loaders) I am trying to use in the Index.html file. Please find the code snippet below for your reference.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,350 questions
{count} votes