-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
编译不过 #35
Comments
Hello @gooddaddy. 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. 你好 @gooddaddy, 为了方便定位和排查问题,我们需要你提供一个重现实例。你可以通过点击 此处 创建一个 Taro 项目并提供 GitHub 仓库地址和重现实例。 |
一.编译过了,但是目前类型有问题; 为啥useRequest 返回值可能是 undefined 的?这样会导致 调用useRequest后不能直接解构。 二.运行时 报错 .._src_runtime_connect.ts:275 TypeError: Object(...) is not a function |
|
|
是一样的 Tdata |
这是 ahooks的类型声明:
这是你的声明:
你的在后面 | undefined |
额。可能是编译的锅。这个我得看看 |
帮忙看看,另外一个问题,我用taro cli 创建一个最新的工程,然后按照你的方式配置,工程能编译通过,但是运行报错(目前最新的taro 是3.5.5 工程默认是 webpack5的,你的插件是不是 不支持webpack5?) |
空的项目么? |
|
node 版本可以提供一下么 |
node 8.5.0 package.json
|
暂时定位到的问题是:
compiler: {
type: 'webpack5',
// 依赖预编译配置
prebundle: {
enable: false
}
},
模板的问题后面会一起解决. 包的问题需要再看下解决方案. 如果着急可以用 3.5 以下的版本 |
记录一下相关issue |
process 的 问题可以通过安装最新版来解决, taro-hooks-v2.0.0-beta-serro.5 官方模板这边快尽快更新. 以上. 若有问题再重新open |
Question
微信小程 编译不过 (taro react 环境)
版本:2.0.0-beta-serro.3
Sample Code
./node_modules/@taro-hooks/shared/dist/shared.esm.js 12:20
Module parse failed: Unexpected token (12:20)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| ENV_TYPE["JD"] = "JD";
| })(ENV_TYPE || (ENV_TYPE = {}));
The text was updated successfully, but these errors were encountered: