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打包微信小程序后,在编辑器打开dist报错TypeError: Cannot read property 'initPxTransform' of undefined #14993

Open
phj-999 opened this issue Dec 15, 2023 · 0 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@phj-999
Copy link

phj-999 commented Dec 15, 2023

相关平台

微信小程序

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

复现步骤

运行yarn build:weapp,微信开发工具打开dist

期望结果

解决报错

实际结果

TypeError: Cannot read property 'initPxTransform' of undefined

环境信息

Taro CLI 3.6.20 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 18.18.0 - E:\node\node.EXE
      Yarn: 1.22.18 - E:\Yarn\bin\yarn.CMD
      npm: 10.0.0 - E:\node\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.20 => 3.6.20
      @tarojs/components: 3.6.20 => 3.6.20
      @tarojs/helper: 3.6.20 => 3.6.20
      @tarojs/plugin-framework-react: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-alipay: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-h5: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-jd: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-qq: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-swan: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-tt: 3.6.20 => 3.6.20
      @tarojs/plugin-platform-weapp: 3.6.20 => 3.6.20
      @tarojs/react: 3.6.20 => 3.6.20
      @tarojs/runtime: 3.6.20 => 3.6.20
      @tarojs/shared: 3.6.20 => 3.6.20
      @tarojs/taro: 3.6.20 => 3.6.20
      @tarojs/taro-loader: 3.6.20 => 3.6.20
      @tarojs/webpack5-runner: 3.6.20 => 3.6.20
      babel-preset-taro: 3.6.20 => 3.6.20
      eslint-config-taro: 3.6.20 => 3.6.20
      react: ^18.0.0 => 18.2.0
      taro-ui: ^3.2.0 => 3.2.0


补充信息

打包调试,编辑器报错TypeError: Cannot read property 'initPxTransform' of undefined

@ZakaryCode ZakaryCode added V-3 Version - 3.x F-react Framework - React T-weapp Target - 编译到微信小程序 labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

2 participants