Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run activedirectory #236

Open
geom16011 opened this issue Dec 1, 2021 · 1 comment
Open

Run activedirectory #236

geom16011 opened this issue Dec 1, 2021 · 1 comment

Comments

@geom16011
Copy link

geom16011 commented Dec 1, 2021

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?

@emmalouiselane
Copy link

emmalouiselane commented Nov 23, 2022

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

import ActiveDirectory from 'activedirectory';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants