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

Could not load C:\Users\gouzi\Desktop\新建文件夹\myApp\src\pages\index\index.tsx?page-loader=true: Cannot read properties of undefined (reading 'routeName') #16139

Open
ghost opened this issue Jul 23, 2024 · 2 comments
Labels
F-react Framework - React T-harmony Target - 编译到 Harmony V-4 Version - 4.x

Comments

@ghost
Copy link

ghost commented Jul 23, 2024

相关平台

鸿蒙

使用框架: React

复现步骤

在鸿蒙打包编译错误

期望结果

可以打包编译成功

实际结果

[taro:vite-harmony-page] Could not load C:\Users\gouzi\Desktop\test\myApp\src\pages\index\index.tsx?page-loader=true: Cannot read properties of undefined (reading 'routeName')

环境信息

👽 Taro v4.0.0-beta.126


  Taro CLI 4.0.0-beta.126 environment info:
    System:
      OS: Windows 11 10.0.22000
    Binaries:
      Node: 18.14.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
      npm: 9.3.1 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/components: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/helper: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/plugin-framework-react: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/plugin-platform-alipay: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/plugin-platform-h5: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/plugin-platform-harmony-ets: ^4.0.0-beta.128 => 4.0.0-beta.128 
      @tarojs/plugin-platform-harmony-hybrid: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/plugin-platform-jd: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/plugin-platform-qq: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/plugin-platform-swan: 4.0.0-beta.126 => 4.0.0-beta.126 
      @tarojs/plugin-platform-tt: 4.0.0-beta.126 => 4.0.0-beta.126
      @tarojs/plugin-platform-weapp: 4.0.0-beta.126 => 4.0.0-beta.126
      @tarojs/react: 4.0.0-beta.126 => 4.0.0-beta.126
      @tarojs/runtime: 4.0.0-beta.126 => 4.0.0-beta.126
      @tarojs/shared: 4.0.0-beta.126 => 4.0.0-beta.126
      @tarojs/taro: 4.0.0-beta.126 => 4.0.0-beta.126
      @tarojs/vite-runner: 4.0.0-beta.126 => 4.0.0-beta.126
      babel-preset-taro: 4.0.0-beta.126 => 4.0.0-beta.126
      eslint-config-taro: 4.0.0-beta.126 => 4.0.0-beta.126
      react: ^18.0.0 => 18.3.1


补充信息

使用官方的git 默认模板打包运行错误

@taro-bot2 taro-bot2 bot added F-react Framework - React T-harmony Target - 编译到 Harmony V-3 Version - 3.x labels Jul 23, 2024
@jetBn
Copy link

jetBn commented Jul 25, 2024

同样问题 就没人回复 ?

@jetBn
Copy link

jetBn commented Jul 25, 2024

怎么解决?

This was referenced Jul 27, 2024
@TheKonka TheKonka removed the V-3 Version - 3.x label Jul 28, 2024
@TheKonka TheKonka added the V-4 Version - 4.x label Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-harmony Target - 编译到 Harmony V-4 Version - 4.x
Projects
None yet
Development

No branches or pull requests

2 participants