相关平台
字节跳动小程序
复现仓库
git@gitee.com:xmountain/fingerprintjs.git
**小程序基础库: 最新**
使用框架: React
复现步骤
调用Taro.getAccountInfoSync 报错,
TypeError: (0 , tarojs_taro__WEBPACK_IMPORTED_MODULE_6_.getAccountInfoSync) is not a function
at _callee$ (carBuying.tsx:34)
at tryCatch (regeneratorRuntime.js:45)
at Generator. (regeneratorRuntime.js:133)
at Generator.next (regeneratorRuntime.js:74)
at asyncGeneratorStep (asyncToGenerator.js:3)
at _next (asyncToGenerator.js:22)
at asyncToGenerator.js:27
at new Promise ()
at t.n (tma-core.js:2)
at new t (tma-core.js:2)
taro 版本3.6.15
期望结果
什么原因导致的
实际结果
什么原因导致的
环境信息
Taro CLI 3.6.15 environment info:
System:
OS: macOS 14.0
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
Yarn: 3.2.1 - /usr/local/bin/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
npmPackages:
@tarojs/cli: 3.6.15 => 3.6.15
@tarojs/components: 3.6.15 => 3.6.15
@tarojs/helper: 3.6.15 => 3.6.15
@tarojs/plugin-framework-react: 3.6.15 => 3.6.15
@tarojs/plugin-platform-alipay: 3.6.15 => 3.6.15
@tarojs/plugin-platform-h5: 3.6.15 => 3.6.15
@tarojs/plugin-platform-jd: 3.6.15 => 3.6.15
@tarojs/plugin-platform-qq: 3.6.15 => 3.6.15
@tarojs/plugin-platform-swan: 3.6.15 => 3.6.15
@tarojs/plugin-platform-tt: 3.6.15 => 3.6.15
@tarojs/plugin-platform-weapp: 3.6.15 => 3.6.15
@tarojs/react: 3.6.15 => 3.6.15
@tarojs/runtime: 3.6.15 => 3.6.15
@tarojs/shared: 3.6.15 => 3.6.15
@tarojs/taro: 3.6.15 => 3.6.15
@tarojs/taro-loader: 3.6.15 => 3.6.15
@tarojs/webpack5-runner: 3.6.15 => 3.6.15
babel-preset-taro: 3.6.15 => 3.6.15
eslint-config-taro: 3.6.15 => 3.6.15
react: ^18.0.0 => 18.2.0
补充信息
暂无
3条答案
按热度按时间cnjp1d6j1#
tt.getAccountInfoSync
应该是 字节跳动小程序无此方法
z9zf31ra2#
是有的
rqmkfv5c3#
是有的
字节小程序并没有这个 API