const {authenticate} = require("ldap-authentication"); to import {authenticate} from "ldap-authentication"; and another required packages https://stackblitz.com/edit/vite-ldap?file=main.js&terminal=dev
const {authenticate} = require("ldap-authentication");
to
import {authenticate} from "ldap-authentication";
and another required packages
https://stackblitz.com/edit/vite-ldap?file=main.js&terminal=dev