Skip to content
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

Property 'continue' does not exist on type 'IDBDatabase'. #372

Open
Skycader opened this issue Dec 14, 2023 · 0 comments
Open

Property 'continue' does not exist on type 'IDBDatabase'. #372

Skycader opened this issue Dec 14, 2023 · 0 comments

Comments

@Skycader
Copy link

Skycader commented Dec 14, 2023

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]

src/app/app.component.ts:32:17:
  32 │           cursor.continue();
     ╵                  ~~~~~~~~

Application bundle generation failed. [0.063 seconds]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant