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

ryoqjall  于 5个月前  发布在  Go
关注(0)|答案(2)|浏览(67)

相关平台

鸿蒙

使用框架: 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 默认模板打包运行错误

相关问题