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

bug: plugin 中使用 @taro-hooks/shared 导致报错 #42

Closed
fine54 opened this issue Jan 25, 2023 · 4 comments
Closed

bug: plugin 中使用 @taro-hooks/shared 导致报错 #42

fine54 opened this issue Jan 25, 2023 · 4 comments
Labels
bug Something isn't working need reproduce not provide code split or repo

Comments

@fine54
Copy link

fine54 commented Jan 25, 2023

版本

  • taro-hooks: 1.5.10
  • taro: 3.3.15
  • node: v14.18.1
  • npm: 6.14.15
  • OS: MacOS 13.0
  • Browser: Chrome

复现步骤

包管理使用的 pnpm,config/index.js => plugins 中添加 @taro-hooks/shared 启动即报错

你期望的现象?

正常启动

现有的现象?

启动后报错:
(node:81484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

复现 repo(最好可以提供一个复现的 repo)

@fine54 fine54 added the bug Something isn't working label Jan 25, 2023
@github-actions
Copy link

welcome discuss in wechat:

@fine54
Copy link
Author

fine54 commented Jan 25, 2023

补充一下细节:
使用的 Vue3,文档 Vue 教程上提到:建议您同时下载 @taro-hooks/shared 插件用于转换一些等同状态的 state
故添加此插件。

Plugins 内容有:['tarojs-router-next-plugin', '@dcasia/mini-program-tailwind-webpack-plugin/dist/taro', 'taro-plugin-pinia', '@tarojs/plugin-html', '@taro-hooks/plugin-vue', '@taro-hooks/shared']

@innocces innocces added the need reproduce not provide code split or repo label Jan 25, 2023
@github-actions
Copy link

Hello @fine54. In order to facilitate location and troubleshooting, we need you to provide a realistic example. You can create a taro project by clicking here and provide the GitHub warehouse address and reproduce examples.

你好 @fine54, 为了方便定位和排查问题,我们需要你提供一个重现实例。你可以通过点击 此处 创建一个 Taro 项目并提供 GitHub 仓库地址和重现实例。

@stale
Copy link

stale bot commented Mar 26, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 26, 2023
@innocces innocces removed the wontfix This will not be worked on label Mar 27, 2023
@fine54 fine54 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need reproduce not provide code split or repo
Projects
None yet
Development

No branches or pull requests

2 participants