I notice a problem with require when I try to require some file like this require(“blabla.js”)
or even a different file.
I get the error can’t find the module.
also, there is a problem when I try to install a new package as I said here
the solution that I found for the 2 cases
create side nodejs project install the package that I want to use in n8n, or create new module after that is done, I copy the folder from node_modules in the temp project to n8n node_modules in n8n folder, next I put in n8n folder in package.json in the dependencies the link to the folder, and now I can put require(“moduleNameThatICreated”) in workflow and use the functions that I have\create
this the way it help me to create helper functions