From 8deda8ab70b1e10bc0e725e31872f8407e877f3c Mon Sep 17 00:00:00 2001 From: Yonghui Lin Date: Wed, 8 Feb 2023 14:36:08 +0800 Subject: [PATCH] docs: Import auto first to work with Dexie --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c93d611a..e2024026 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,9 @@ As of version 4, fake-indexeddb includes TypeScript types. As you can see in typ If you import `fake-indexeddb/auto` before calling `new Dexie()`, it should work: ```js -import Dexie from "dexie"; +// import fake-indexeddb/auto first to make Dexie works correctly import "fake-indexeddb/auto"; +import Dexie from "dexie"; const db = new Dexie("MyDatabase"); ```