PouchDB uncaught exception: Invalid adapter
-
07-07-2021 - |
سؤال
I am new to javascript and pouchdb. I made a simple html file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/pouch.alpha.js"></script>
<title>New Web Project Page</title>
</head>
<body>
<h1>New Web Project Page</h1>
<script>
Pouch('idb://test', function(err, db) {
// Use db to call further functions
});
</script>
</body>
</html>
and I downloaded the pouch.alpha.js file and placed it into the "js" folder.
I just want to try the first example from the pouchdb.com website to create a database but Firefox>Tools>Web Developer>Error console gives me the error:
uncaught exception: Invalid adapter
المحلول
What version of firefox have you got installed? I just copied your exact test and it works for me with Firefox 16
لا تنتمي إلى StackOverflow