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

Question. When I debug in Chrome inspect, I get an error in indexedDB. #7002

Closed
nabezokodaikon opened this issue Aug 10, 2020 · 2 comments
Closed

Comments

@nabezokodaikon
Copy link

How can I use indexedDB for Chrome inspect debugging?

Sample code

export class ProductDatabase {
  constructor(private name: string, private version: number) {
    const openDatabaseRequest = indexedDB.open(this.name, this.version);
    openDatabaseRequest.onupgradeneeded = this.upgrade;
  }
}

Error

error: Uncaught ReferenceError: indexedDB is not defined
    const openDatabaseRequest = indexedDB.open(this.name, this.version);

Running command

$ deno run --inspect-brk --allow-read --allow-net --config tsconfig.json db.ts

tsconfig.json

{
  "compilerOptions": {
    "lib": [
      "deno.ns",
      "dom"
     ],
    "plugins": [
      {
        "name": "typescript-deno-plugin"
      }
    ]
  }
}
@crowlKats
Copy link
Member

IndexedDB is not yet implemented in Deno, see #1699

@nabezokodaikon
Copy link
Author

Thank you for your reply. understood.

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

2 participants