Hi,
I’m starting out with PHP application development, and while following tutorials and manuals, I’ve run into a problem that’s probably easy to solve, but I haven’t found the solution.
In the developer manual: Introduction — Nextcloud latest Developer Manual latest documentation
it suggests cloning the cookbook application and then activating it. When I try to run it by clicking on the application icon, I get this message in the log: “Could not find resource cookbook/js/cookbook-main.js to load”
What step have I missed?
Thanks for your help.
P.S. I’m using the Nextcloud development environment for Ubuntu.
Hi, as quite all the Nextcloud apps, you need to build the js part (VueJS, typescript and javascript files located in src). Either you need at least to look at commands in package.json (eg npm run build). In that project, you have a Makefile, so, the simplest thing to do is “make”.
1 Like
I first tried running make directly (I thought I needed to add an argument like in the Python tutorials, “make register,” but obviously couldn’t find the equivalent).
Result: Since PHP wasn’t installed on my computer, it didn’t work.
After installing PHP, I got a message saying “Install or enable PHP’s DOM extension.”
I then tried the npm approach (npm i then npm run dev), and the compilation completed successfully 
Indeed, I had skipped over a step in the tutorials. Perhaps this detail should be added to the manual.
Un grand merci Sébastien.