Hi,
How do I import node packages using the activepieces hosted service? Or do I host it myself and therefore be able to install and import packages.
I’m getting this error.
“Error 1: Compilation\n Error 2: "index.ts(1,23): error TS2307: Cannot find module ‘ldapjs’ or its corresponding type declarations.\n"\n”
this is my node code.
import * as ldap from ‘ldapjs’;
export const code = async (inputs) => {
const url = ldap://${inputs.server}:${inputs.port}
;
const password = inputs.password;
const client = ldap.createClient({ url });
client.bind(null, password, (err) => {
if (err) {
console.error(err);
}
});
};