I am new to developing plugins so I have been going through some of the tutorials offered in the adobe xd developer documents. Based on what is there I tried to put together a basic image search plugin using some free api’s, however I ran into a problem with uxp.
In order to access the file system I did as is suggested in the tutorials, and put
const fs = require("uxp").storage.localFileSystem;
at the top of my main.js file. When I then try to run the plugin I get a message in the developer console saying “uxp is not defined”.
I have been trying to find a solution for the past couple of days, but have not been able to at all. Any at all help is appreciated.