-
Notifications
You must be signed in to change notification settings - Fork 71
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
Compilation errors when used with TypeScript #56
Comments
The Neode constructor is the default export from the package, not imported inside braces:
.fromEnv is a static method |
I am using
|
When I use neode with AngularJS:
import { Neode } from 'neode';
gives compilation error
ERROR in src/app/database/database.service.ts(2,10): error TS2724: Module '"../../../node_modules/neode/types"' has no exported member 'Neode'. Did you mean 'Node'?
Fix:
in
index.js
: changeexport = Neode
toexport { Neode }
or
in your script:
import * as Neode from 'neode'
Could be duplicate of #14
The text was updated successfully, but these errors were encountered: