-
Notifications
You must be signed in to change notification settings - Fork 34
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
Typescript errors #19
Comments
@williamkapke @tobi-or-not Node has refactored Buffer into it's own namespace so, in the objectid.d.ts file of the package this must be included for this error to go away 'import {Buffer} from 'buffer'; since buffer is now orphaned in that file. |
This should be fixed by #20 now? Please reopen if not. Thanks! |
"bson-objectid": "^1.2.3" |
Hi,
I pulled the npm package (version 1.2.3) into an Angular 5 project, using typescript. When I try to build the project I get two errors:
ERROR in node_modules/bson-objectid/objectid.d.ts(20,25): error TS2304: Cannot find name 'Buffer'.
src/app/term.service.ts(7,10): error TS2305: Module '"<path>/node_modules/bson-objectid/objectid"' has no exported member 'ObjectID'.
Does anyone know why this might happen and how to solve that problem?
The text was updated successfully, but these errors were encountered: