I think you may need to define your resources in a clientResources node in the module.config - https://world.episerver.com/documentation/developer-guides/CMS/configuration/Configuring-moduleconfig/#clientResources
Hi David,
Did you figure this out? I'm interested because I noticed somebody found a bug on a package I created a while back that looks exactly like this (https://github.com/jacobjones/DoubleJay.Epi.ConfigurableColorPicker/issues/1). Haven't dug into it, but I tested in Episerver 10 and 11 before I released it—so kinda strange.
Hey Jake,
I did find out what it was. Having it in the _protected folder, I forgot to make sure autodiscovery for <protectedModules> in the web.config was set to Modules. So it was never scanning it for my component. I found another post about it here. Not sure if thats the issue you were having, but it resolved it for me.
Thanks
I was looking into a similiar issue in an upgraded project where EPiServer.Forms didn't run correctly after installing. Got 404 errors from a couple of JS references and some more problems.
I removed all traces of EPiServer.Packaging and also found this config pointing to the old Modules setup.
<add virtualPath="~/EPiServer/"
physicalPath="[appDataPath]\Modules"
customFileSummary="~/FileSummary.config"
name="ProtectedAddons"
type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider, EPiServer.Framework.AspNet" />
Replaced it with:
<add name="ProtectedModules" virtualPath="~/EPiServer/" physicalPath="Modules\_Protected" type="EPiServer.Web.Hosting.VirtualPathNonUnifiedProvider, EPiServer.Framework.AspNet" />
Hello,
I have been banging my head against the wall for a while now trying to figure out what I am doing wrong here. I am trying to package my dashboard component, but when I try to reference the dojo script, it throws a 404 because it is looking in the ~/Episerver/Shell/{version}/ folder instead of my packaged component folder. Looking at the component package it all seems to be structured correctly in ~/modules/_protected/{package_name}. I am assuming its something I am doing wrong with my module.config but I can't seem to narrow it down.
Can anyone point me in the right direction?
Thanks