taro 支付宝小程序页面不存在

33qvvth1  于 4个月前  发布在  其他
关注(0)|答案(7)|浏览(44)

相关平台

支付宝小程序

小程序基础库: 2.0
使用框架: React

复现步骤

页面跳转使用了 Taro.navigateTo({
url: "/O2O/promotionRecord/index"
})

页面报错如下
index.js:13 Uncaught TypeError: Function(...) is not a function
at ./node_modules/@babel/runtime-corejs3/regenerator/index.js (VM193 index.worker.js:278:243040)
at a (VM89 index.worker.js:298:189)
at ./node_modules/shrinkpng/dist/index.js (VM193 index.worker.js:278:124273)
at a (VM89 index.worker.js:298:189)
at ./src/O2O/nonResident/components/InformationFilling/index.tsx (VM193 index.worker.js:278:214380)
at a (VM89 index.worker.js:298:189)
at ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/O2O/nonResident/index.tsx (VM193 index.worker.js:278:794)
at a (VM89 index.worker.js:298:189)
at ./src/O2O/nonResident/index.tsx (VM193 index.worker.js:278:227890)
at a (VM89 index.worker.js:298:189)

页面不存在

期望结果

希望可是进行页面跳转

实际结果

页面不存在

环境信息

Taro CLI 3.5.12 environment info:
    System:
      OS: macOS 13.4
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.17.1 - ~/.nvs/default/bin/node
      Yarn: 1.22.15 - ~/.yarn/bin/yarn
      npm: 8.15.0 - ~/.nvs/default/bin/npm
    npmPackages:
     "@tarojs/components": "3.5.12",
    "@tarojs/helper": "3.5.12",
    "@tarojs/plugin-framework-react": "3.5.12",
    "@tarojs/plugin-platform-alipay": "3.5.12",
    "@tarojs/plugin-platform-jd": "3.5.12",
    "@tarojs/plugin-platform-qq": "3.5.12",
    "@tarojs/plugin-platform-swan": "3.5.12",
    "@tarojs/plugin-platform-tt": "3.5.12",
    "@tarojs/plugin-platform-weapp": "3.5.12",
    "@tarojs/react": "3.5.12",
    "@tarojs/router": "3.5.12",
    "@tarojs/runtime": "3.5.12",
    "@tarojs/shared": "3.5.12",
    "@tarojs/taro": "3.5.12",
    "@tarojs/taro-h5": "3.5.12",

补充信息

只有支付宝小程序存在问题,微信小程序以及h5正常

72qzrwbm

72qzrwbm2#

开发者工具 啥的重启过没得

t9eec4r0

t9eec4r03#

能尝试的都尝试了

5sxhfpxr

5sxhfpxr6#

排查后发现,只要有相关插件中使用了window对象,就会引起整个分包的异常。

相关问题