manekinekko / angular-web-bluetooth-starter Goto Github PK
View Code? Open in Web Editor NEWA Starter for the Angular Web Bluetooth module
Home Page: https://github.com/manekinekko/angular-web-bluetooth
A Starter for the Angular Web Bluetooth module
Home Page: https://github.com/manekinekko/angular-web-bluetooth
using the library to scan for all devices throws a Typescript error. Filter work, though.
let scanfilter1 = {
options: {
acceptAllDevices: true
}
};
this.webble
// 1: discover devices
.discover$( scanfilter1 );
ERROR:
Typescript Error
Argument of type '{ options: { acceptAllDevices: boolean; }; }' is not assignable to parameter of type 'RequestDeviceOptions'. Property 'filters' is missing in type '{ options: { acceptAllDevices: boolean; }; }'.
ON;
Ionic Framework: 3.0.1
Ionic App Scripts: 1.3.0
Angular Core: 4.0.0
Angular Compiler CLI: 4.0.0
Node: 7.8.0
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Mobile Safari/537.36
Hi, I am getting this error
Uncaught Error: Unexpected value '[object Object]' imported by the module 'AppModule'
Zone.runTask @ zone.js:170
ZoneTask.invoke @ zone.js:420
after I add
WebBluetoothModule.forRoot({
enableTracing: true
}),
to the imports
section of AppModule
.
Do you have any suggestion on how to avoid that?
Thanks a lot
I am trying to build my Angular project using the CLI with the production flag, but I'm getting the following error.
ERROR in ..\@manekinekko\angular-web-bluetooth\dist\lib\platform\browser.ts(3,2): Error during template compile of 'BrowserWebBluetooth'
Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'Injectable'
'Injectable' calls 'ɵmakeDecorator'.
Some info...
Angular Core: 5.2.0
Angular CLI: 1.6.8
Node: 8.9.1
OS: Windows 10 x64
Any assistance would be greatly appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.