You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This exact piece of code from documentation throws an error in Angular 17, please fix.
this.dbService .openCursor('people', IDBKeyRange.bound('A', 'F')) .subscribe((evt) => { var cursor = (evt.target as IDBOpenDBRequest).result; if (cursor) { console.log(cursor.value); cursor.continue(); } else { console.log('Entries all displayed.'); } });
Error:
✘ [ERROR] TS2339: Property 'value' does not exist on type 'IDBDatabase'. [plugin angular-compiler]
src/app/app.component.ts:31:29:
31 │ console.log(cursor.value);
╵ ~~~~~
✘ [ERROR] TS2339: Property 'continue' does not exist on type 'IDBDatabase'. [plugin angular-compiler]
This exact piece of code from documentation throws an error in Angular 17, please fix.
this.dbService .openCursor('people', IDBKeyRange.bound('A', 'F')) .subscribe((evt) => { var cursor = (evt.target as IDBOpenDBRequest).result; if (cursor) { console.log(cursor.value); cursor.continue(); } else { console.log('Entries all displayed.'); } });
✘ [ERROR] TS2339: Property 'continue' does not exist on type 'IDBDatabase'. [plugin angular-compiler]
Application bundle generation failed. [0.063 seconds]
The text was updated successfully, but these errors were encountered: