I’ve the same problem…
The a…-images-widgets code in index.js depends on the a…-images module.
(Edit: I’ve remembered this wrong… it comes from a…-pieces-widgets. But this gets extended in images-widgets)
So with your module my-slideshow-widgets… which should be called
my-slideshows-widgets you will need a my-slideshows module, too.
This can extend a…-images module.
But then you will have an additional and separate image “category”.
I’m looking for a solution to use apostrophe-images in an own-images-widgets which extends apostrophe-images-widgets.
I simply want to upload images, but when adding the images to the page I need some additional fields and different rendering. I think for this the best way is to create an own widget which extends the existing apostrophe-images-widgets.
But how do we get this to work?
TypeError: Cannot read property 'name' of undefined
at beforeConstruct (C:\Users\makolb\Documents\Visual Studio 2017\Projects\alpcal\touring\node_modules\apostrophe\lib\modules\apostrophe-pieces-widgets\index.js:98:31)
at beforeConstruct (C:\Users\makolb\Documents\Visual Studio 2017\Projects\alpcal\touring\node_modules\moog\index.js:239:21)
at C:\Users\makolb\Documents\Visual Studio 2017\Projects\alpcal\touring\node_modules\moog\index.js:250:22
at iterate (C:\Users\makolb\Documents\Visual Studio 2017\Projects\alpcal\touring\node_modules\moog\node_modules\async\lib\async.js:146:13)
at Immediate._onImmediate (C:\Users\makolb\Documents\Visual Studio 2017\Projects\alpcal\touring\node_modules\moog\node_modules\async\lib\async.js:157:25)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)