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

taro vue3 UnhandledPromiseRejection,ERR_UNHANDLED_REJECTION错误 #1211

Open
doubunv opened this issue Jun 12, 2023 · 0 comments
Open

taro vue3 UnhandledPromiseRejection,ERR_UNHANDLED_REJECTION错误 #1211

doubunv opened this issue Jun 12, 2023 · 0 comments

Comments

@doubunv
Copy link

doubunv commented Jun 12, 2023

在taro环境下run报错。
const OSS = require('ali-oss')

我的环境版本:

node-v20.3.0
"dependencies": {
        "@babel/runtime": "^7.7.7",
        "@tarojs/cli": "^3.4.8",
        "@tarojs/components": "3.4.8",
        "@tarojs/plugin-framework-vue3": "3.4.8",
        "@tarojs/plugin-html": "3.4.8",
        "@tarojs/runtime": "3.4.8",
        "@tarojs/shared": "3.4.8",
        "@tarojs/taro": "3.4.8",
        "ali-oss": "^6.17.1",
        "async_hooks": "^1.0.0",
        "bluebird": "^3.5.5",
        "default-passive-events": "^2.0.0",
        "jssha": "^1.5.0",
        "source-map": "^0.7.4",
        "taro-ui-vue3": "^1.0.0-alpha.21",
        "vue": "^3.0.0"
      },

错误提示:
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "[object Array]".] {
code: 'ERR_UNHANDLED_REJECTION'
}

@doubunv doubunv changed the title ERR_UNHANDLED_REJECTION taro vue3 UnhandledPromiseRejection,ERR_UNHANDLED_REJECTION错误 Jun 12, 2023
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