-
@BrutalBirdie oh and if you find a way to get it working, document they way you made it working here so some appdev may add your changed persistent
-
@BrutalBirdie I tried but it is not allowing me to install it
-
-
@Jeyakumarrathnaselvi Are you having to install new npm modules because you are developing some directus plugin/extension?
-
@Jeyakumarrathnaselvi Can someone help
-
@Jeyakumarrathnaselvi I am not sure how this can be solved in Cloudron context. Essentially, the situation here is that we want to add extra code to an app which brings it's own dependencies/libraries.
Where/how does a Directus extension load extra node_modules from? Can it be under the extensions directory or does it have to be installed system wide? If it's latter, I am afraid we are out of luck and this is not possible with Cloudron.
-
@girish I was looking into adding extensions for Directus, more specifically this one: https://github.com/dimitrov-adrian/directus-extension-masked-interface
Do you think it will work or does using
npm install
means it's always a system-wide installation? -
@ruihildt I've installed a few extensions from that repo and what I usually do is clone it locally, run
npm install
andnpm run build
, this will create adist
folder with theindex.js
-files that you can upload into the correlating extensions-folder via the file manager. Not sure if this applies to this very extension, because the description is missing, but it worked for various others. I just tried it and it installs fine, but I haven't uploaded it (and don't forget to restart Directus, it will tell you which extensions were loaded)