taro 4.0beta版本 --watch 编译到H5 内存溢出

7cwmlq89  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(43)

相关平台

H5

浏览器版本: Version 126.0.6478.127 (Official Build) (arm64)
使用框架: React

复现步骤

初始化 beta 版,启动 h5

期望结果

正常执行h5调试

实际结果

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

环境信息

Taro v4.0.0-beta.116

  Taro CLI 4.0.0-beta.116 environment info:
    System:
      OS: macOS 14.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
      Yarn: 1.22.22 - ~/.nvm/versions/node/v18.17.0/bin/yarn
      npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/components: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/helper: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-framework-react: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-platform-alipay: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-platform-h5: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-platform-harmony-hybrid: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-platform-jd: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-platform-qq: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-platform-swan: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-platform-tt: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/plugin-platform-weapp: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/react: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/runtime: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/shared: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/taro: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      @tarojs/vite-runner: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      babel-preset-taro: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      eslint-config-taro: 4.0.0-alpha.38 => 4.0.0-alpha.38 
      react: ^18.0.0 => 18.3.1

相关问题