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

Could not resolve dependency "epi.objectconverterregistry"

Vote:
 

Hi!

I was trying to register a type converter from Drag-and-drop example 

and put the following line in my Initializer module:

var converterRegistry = this.resolveDependency("epi.objectconverterregistry");

This resulted in

epi.js:2 Error: Could not resolve dependency "epi.objectconverterregistry" (epi.dependency)
at resolve (epi.js:2)
at resolveDependency (epi.js:2)
at initialize (ModuleInitializer.js:52)
at . (epi.js:2)
at dojo.js:15
at _c8 (dojo.js:15)
at _36 (dojo.js:15)
at dojo.js:15
at _37 (dojo.js:15)
at _7c (dojo.js:15)

Could anyone please show the proper way to register a type converter?

#151041
Jul 07, 2016 16:39
Vote:
 

Well, if it helps, managed to get some use of type conversion registry like this:

define([
..
"epi/shell/conversion/ObjectConverterRegistry"
], function (
...

objectConverterRegistry
) {



#151184
Jul 13, 2016 9:27
Vote:
 

Glad you found it. We'll update the documentation.

In case you were using the DnD sample: the source needs a name property when calling source.insertNodes. We'll update that part as well.

#151212
Jul 13, 2016 13:39
* 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.