manekinekko / angular-web-bluetooth

The missing Web Bluetooth module for Angular
https://manekinekko.github.io/angular-web-bluetooth/
MIT License
195 stars 56 forks source link

Module is not Found #75

Closed ramirezsebas closed 3 years ago

ramirezsebas commented 3 years ago

Describe the bug After installing it using npm i -S @manekinekko/angular-web-bluetooth @types/web-bluetooth, when I try to import the web module it is not found.

To Reproduce Steps to reproduce the behavior:

  1. Install the Web Bluetooth Module
  2. Go to App.module.ts
  3. Try to import WebBluetoothModule from @manekinekko/angular-web-bluetooth
  4. See error

Expected behavior No error when I import the Module, so I can use it.

Screenshots Screenshot (181)

Desktop (please complete the following information):

Comments Angular Version: Screenshot (182)

manekinekko commented 3 years ago

It looks like this is the same issue as https://github.com/manekinekko/angular-web-bluetooth/issues/72

ramirezsebas commented 3 years ago

It looks like this is the same issue as https://github.com/manekinekko/angular-web-bluetooth/issues/72

Ohh ok, thanks I guess I just didn't understand ver well the solution, I'll check it out. Thank you πŸ˜„

manekinekko commented 3 years ago

No worries ☺️

I am still trying to figure out a correct way to fix #72

ramirezsebas commented 3 years ago

I don't know if it helps but, I just cloned your project and updated some dependencies for my version of Angular and Node. 1) npm outdated 2) npm update 3) npx npm-check-updates -u 4) npm install 5) Update Chokidar 5) npm install typescript@">=4.0.0 and <4.2.0" --save-dev

Also, what solved most of the errors would be adding reference types="web-bluetooth" to everywhere that is using the Bluetooth Types from the Web Bluetooth API, and it works when you import from the public apis.

image

image

Hope you can fix it 😁

manekinekko commented 3 years ago

This issues has been fixed in. Please install new version @manekinekko/angular-web-bluetooth@11.2.2. Please feel free to close this issue once you've confirmed it's working for you.

ramirezsebas commented 3 years ago

Awesome! It's working very well. Thankss! 😎😎