episerver / YouTubeContentProvider

Content provider to incorporate YouTube content into EPiServer CMS templates.
13 stars 3 forks source link

Error on epi-cms.component.Media.js in the runtime #2

Open SenuraMalaka opened 5 years ago

SenuraMalaka commented 5 years ago

I am getting this error in the browser console after I have added the YouTube gadget from the CMS edit mode. And CMS edit is not usable as it shows blank content.

The script from “http://localhost/login/Shell/11.14.0/ClientResources/epi-cms.component.Media.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.

Loading failed for the <script> with source “http://localhost/login/Shell/11.14.0/ClientResources/epi-cms.component.Media.js”.

Below shows the full console error log. image


It seems like this is causing the issue https://github.com/episerver/YouTubeContentProvider/blob/83ccea620891b15077f6b70d19f1a8152ee823a2/EPiServer.Sample.YouTubeProvider/UI/YouTubeComponent.cs#L13

I am having, EPiServer.CommonFramework version=9.0.1 EPiServer.CMS.Core version=11.11.0 EPiServer.CMS.UI version=11.14.0 EPiServer.CMS.UI.Core version=11.14.0 EPiServer.Shell version=11.2.0.0 EPiServer.Community version=9.0.0

SenuraMalaka commented 5 years ago

This is happening because the widgetType is defined as "epi-cms.component.Media" instead of "epi-cms/component/Media" in here. Pull request has been made to solve this.