November Happy Hour will be moved to Thursday December 5th.

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

Vote:
 

I have used EpiServer YouTube Content Provider

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”.

Here is the full error which is displayed on the browser console. (As you can see: The edit mode is blank; nothing is displayed other than a white screen. However, we could access the admin page. It shows all the content. But not the CMS edit mode)

Error on Console

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

Any thoughts on how to fix?

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


#200766
Jan 24, 2019 11:51
Vote:
 

Resolved.
Used "epi-cms/component/Media" instead of "epi-cms.component.Media" as on This Forum Topic

#200833
Jan 28, 2019 5:04
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.