Coded Component Script does not load?

We are using a coded component, the one in beta. It has been working for a while. But a over the weekend it suddenly stopped working. The issues seems to be related to a script not loading.

The error I get looks like this

Refused to execute script from 'https://..../undefined' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Is this a bug or?

Hi!

Did you deploy just before the weekend? Or did this happen independently?

I deployed last week, and sometimes inbetween it suddenly stopped working. And not able to debug since the script that is tied to the coded component does not seem to load. No console logs etc.

Hi!

Is the script code itself added in Appfarm, or is this just the URL to the script?

I notice that the script URL in your screenshot has “undefined” in it, could that also be something to look into?

Sorry, I removed too much of the URL. It’s added inn the code part of the CodedComponent.

playlist:1 Refused to execute script from 'https://{accname}.appfarm.app/{appname}/layout/undefined' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Feels wonky… Not sure were the error is.

Hi,

Thats not a valid URL? Looks like your set up that dynamic url wrong? Do you have a function there, trying to construct a URL, but you’ve forgot the dollar-sign in front of the {accname} (should be ${accname})?

1 Like

Sorry for not being clear. These are just dummy variables. So in reality {accname} is an actual appfarm account name etc etc.