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

运行到微信小程序开发者工具的时注册适配器出错 #16

Open
5 of 7 tasks
itmanyong opened this issue Sep 10, 2024 · 0 comments
Open
5 of 7 tasks

Comments

@itmanyong
Copy link

描述问题

按照我文档描述安装和使用defineDriver注册存储适配器,但是运行到微信开发者工具报错,指明适配器内部的注册属性值不是一个函数,如下图所示:
image
相关注册代码

import { sqliteDriver, uniStorageDriver } from '@uni-helper/localforage-adapter';
import localforage from 'localforage';
localforage.defineDriver(uniStorageDriver);

复现

按照文档使用即可

系统信息

image
win10 x64 pro

使用的包管理器

pnpm

核对

贡献

  • 我愿意提交一个 PR 修复这个问题
  • 我愿意提交一个 PR 带有失败的测试(实际上只要去做就好,谢谢!)
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