Try our conversational search powered by Generative AI!

No store by the name 'epi.cms.contentdata' exists [CMS 9.12.2]


I have a custom widget that, when I add it to the Dashboard, I get this JS error: "Uncaught Error: No store by the name 'epi.cms.contentdata' exists." The code that triggers this error is:

var storeRegistry = dependency.resolve('epi.storeregistry');
this._contentStore = storeRegistry.get('epi.cms.contentdata'); // error triggers here

Any ideas what could be going on? This store is supposedly a built-in store, right?

Edited, Nov 10, 2017 10:13


When running in the dashboard the cms module are not loaded. You need to add the dependency in the moduleDependencies section in the module.config 

I hope it solves it for you

Nov 20, 2017 9:13

Hi Jim.

I tried adding the following to the module.config file, but I'm still getting the exact same error:

          <add dependency="CMS" type="RunAfter" />

Is this correct, or am I doing it wrong?

Dec 08, 2017 13:36

Hey, did you get this working. I would guess that the type of the dependency needs to be "Require" in order to force CMS to be loaded.

Jan 09, 2018 10:38

Hello Ben,

No, unfortunately, I did not get this working. I will try using "Require" instead of "RunAfter" and report back!

Jan 09, 2018 10:43

Thank you Ben, with using "Require" as the dependency type, the widget works. :)

Jan 09, 2018 14:35
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.