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 微信小程序项目,真机调试: TypeError: Cannot read property 'setPageTypeById' of undefined #3147

Open
panguoxian opened this issue Jul 17, 2024 · 3 comments

Comments

@panguoxian
Copy link

panguoxian commented Jul 17, 2024

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.3.11

平台

weapp

重现链接

参考快速上手里面操作

重现步骤

1、taro init myApp 生成项目

2、pnpm dev:weapp 编译出 diSt

3、微信开发者工具 导入项目

4、真机调试 出现 index.js:1 eval script evaluate_id #5 failed TypeError: Cannot read property 'setPageTypeById' of undefined 错误
但是小程序能正常运行。担心有隱患。
Uploading 50.jpg…

期望的结果是什么?

不报错

实际的结果是什么?

希望知道这是什么原因有什么办法可以解决?

环境信息

taro info
👽 Taro v3.6.34

Taro CLI 3.6.34 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 20.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@tarojs/cli: 3.6.34 => 3.6.34
@tarojs/components: 3.6.34 => 3.6.34
@tarojs/helper: 3.6.34 => 3.6.34
@tarojs/plugin-framework-vue3: 3.6.34 => 3.6.34
@tarojs/plugin-html: 3.6.34 => 3.6.34
@tarojs/plugin-platform-alipay: 3.6.34 => 3.6.34
@tarojs/plugin-platform-h5: 3.6.34 => 3.6.34
@tarojs/plugin-platform-jd: 3.6.34 => 3.6.34
@tarojs/plugin-platform-qq: 3.6.34 => 3.6.34
@tarojs/plugin-platform-swan: 3.6.34 => 3.6.34
@tarojs/plugin-platform-tt: 3.6.34 => 3.6.34
@tarojs/plugin-platform-weapp: 3.6.34 => 3.6.34
@tarojs/runtime: 3.6.34 => 3.6.34
@tarojs/shared: 3.6.34 => 3.6.34
@tarojs/taro: 3.6.34 => 3.6.34
@tarojs/taro-loader: 3.6.34 => 3.6.34
@tarojs/webpack5-runner: 3.6.34 => 3.6.34
babel-preset-taro: 3.6.34 => 3.6.34
eslint-config-taro: 3.6.34 => 3.6.34

其他补充信息

是否是我的环境有问题?

@jiayoujyjyjy
Copy link

同样问题,蹲一个后续

@xshwy
Copy link

xshwy commented Aug 12, 2024

我也遇到同样的问题了,MAC真机测试没问题;MAC开发测试也没问题;到真机就出这个问题,iOS和Android都一样。
image

@xshwy
Copy link

xshwy commented Aug 12, 2024

在真机测试的时候,还提示缺少NoticeBar,开发版、MAC真机测试、体验版都没问题…

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

3 participants