eelcocramer / node-bluetooth-serial-port

Serial I/O over bluetooth for NodeJS
Other
496 stars 139 forks source link

404 in install types for typescript #163

Closed yangoff closed 6 years ago

yangoff commented 7 years ago

kai-desktop BlueJS # npm install --save @types/bluetooth-serial-port npm ERR! code E404 npm ERR! 404 Not Found: @types/bluetooth-serial-port@latest

meisterlampe commented 7 years ago

The package itself contains the typescript definition file. No need to install them directly:

yangoff commented 7 years ago

Uncaught TypeError: exists is not a function at Function.getRoot (bindings.js:153) at bindings (bindings.js:55) at bluetooth-serial-port.js:20 at Object. (bluetooth-serial-port.js:137) at Object.../../../../bluetooth-serial-port/lib/bluetooth-serial-port.js (bluetooth-serial-port.js:240) at __webpack_require__ (bootstrap f88ba37…:54) at Object.../../../../../src/app/service/service.component.ts

./~/bindings/bindings.js 76:22-40 Critical dependency: the request of a dependency is an expression

eelcocramer commented 7 years ago

Thank you for the report. To me this last comment seems not related to the original issue. If this is indeed the case I would appreciate if you can close this issue and create a new one. This keeps issues separated and easier to search for.

Also please add more details about your issue: what platform are you using, what version of nodejs, a code example that can be used to reproduce the issue, etc.

From the stacktrace I can see that this issue occurs in bindings which is not part of this project. I noticed that that a new version of this module was released recently which changes the way the exists function is determined. It might solve your issue.

Thanks!