Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Lists loaded from packages are not recognized (although they do upload to CouchDB) #392

Open
kangu opened this issue Apr 4, 2013 · 0 comments

Comments

@kangu
Copy link

kangu commented Apr 4, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant