Hello,
I am building a package for managing a set of products and I want to export certain view and lists, along with templates, to render the pages I need.
I have the package in /packages, the app.js is like this:
module.exports = {
types: require('./types'),
lists: require('./lists'),
views: require('./views'),
shows: require('./shows'),
updates: require('./updates')
};
All those files exist in the package folder.
In the main kanso.json I have added "packages/products" to the modules list, and in the main app.js I have use require('products') to set everything up.
Now the tricky part is that the list objects I need are created in CouchDB (I can see it in Futon), but they don't work when I try to use the proper url, nor goes Kanso recognize them and throws Error: Unknown list function in the console.
This happens for example on _list/orders/orders. I have both the list and view created (same name in this case), but I can only access the view. If I move the list to the main lists.js file, everything works fine.
Thank,
Radu Stanciu