You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: