Hi Noel,

> "error":"compilation_error","reason":"Expression does not eval to a function.


We could analyse the JSON manually, but as your application will get bigger,
it will become more and more complex.
As I wrote earlier, I recommend you to use a tool like couchapp 
(http://github.com/couchapp/couchapp).

The idea is to convert a folder with subfolders and files into a design 
document.
In your case it would be something like: 

- doc /         (weird name for a design document…)
  - views
    - map
      - nv.js
  - lists
    - lightning.js

Documentation is there:
    https://couchapp.readthedocs.io/en/latest/couchapp/gettingstarted.html

Note that, with couchapp, you are not obliged to generate a complete « app », 
but maybe it’s easier to begin with.


Regards,

Aurélien 

Reply via email to