node-activedirectory icon indicating copy to clipboard operation
node-activedirectory copied to clipboard

Run activedirectory

Open geom16011 opened this issue 4 years ago • 1 comments

Hallo

I have used the npm install activedirectory i create a json as specified bellow { "name": "ldap", "version": "1.0.0", "main": "ldap.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "activedirectory": "^0.7.2", "async": "^3.2.2", "bunyan": "^1.8.15", "ldapjs": "^2.3.1", "underscore": "^1.13.1" }, "devDependencies": {}, "description": "" }

Create a javascript file and use an import statement as follows

import ActiveDirectory from "package.json";

However import does not work.

Any ideas?

geom16011 avatar Dec 01 '21 09:12 geom16011

You have to import from the npm package rather than the package.json, try this:

import ActiveDirectory from 'activedirectory';

emmalouiselane avatar Nov 23 '22 12:11 emmalouiselane