Try our conversational search powered by Generative AI!

Error: Target must be an event emitter

Vote:
 

Hey,

I'm having this weird problem that I can't get anything into edit mode suddenly anymore due to this dojo related script error I'd guess? I'm using a fairly fresh install of the latest Episerver packages from nuget (not pre-release though). The CMS seems to otherwise work and the site opens as usual, all help is accepted :).

epi.js:2 Error: Target must be an event emitter
at _1f9 (dojo.js:15)
at Function.on.parse (dojo.js:15)
at on (dojo.js:15)
at _d95.start (widgets.js:2)
at . (widgets.js:2)
at dojo.js:15
at when (dojo.js:15)
at _b52.initialize (widgets.js:2)
at . (epi.js:2)
at dojo.js:15



#148049
May 02, 2016 15:33
Vote:
 

Forgot to mention that I tried to enable Limit touch support and reseting the views but it didn't help. Here is an image of the view I'm stuck with when attempting to access the edit mode. It's the same when I attempt to edit a page directly by url.

Inaccessible edit mode

Edit:

After debugging the js sources I managed to find that the issue is related to that the ModuleManager method _runModuleInitializer has trouble initializing epi.shell.ShellModule.

Here's a slightly better call stack for the problem:

"Error: Target must be an event emitter at _1f9 (http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/dojo/dojo.js:15:49846) at Function.on.parse (http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/dojo/dojo.js:15:49186) at on (http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/dojo/dojo.js:15:48449) at _d95.start (http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/epi/shell/widgets.js:2:480309) at .<anonymous> (http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/epi/shell/widgets.js:2:399050) at http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/dojo/dojo.js:15:30941 at when (http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/dojo/dojo.js:15:81864) at _b52.initialize (http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/epi/shell/widgets.js:2:398901) at .<anonymous> (http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/epi/epi.js:2:8783) at http://localhost:50433/EPiServer/Shell/9.4.4.0/ClientResources/dojo/dojo.js:15:30941"

Edit2:

This was somehow related to using a multi-site license and having the use site specific assets option flagged. When I removed the site and remade it, this issue disappeared.

#148050
Edited, May 02, 2016 15:37
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.