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

js/app.js from Terser TypeError: t.replace is not a function at Array.forEach (<anonymous>) #15528

Open
yongzhenLiu2018 opened this issue Apr 18, 2024 · 0 comments
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@yongzhenLiu2018
Copy link

相关平台

H5

浏览器版本: zhen
使用框架: Vue 3

复现步骤

在dev环境正常,执行build 就会出现异常,有同事电脑正常,通过虚拟机新部署的全新环境故障依旧
无论是build小程序还是H5依旧

期望结果

正常执行build构建生产包

实际结果

zhen@zhendeiMac 职工商城 % npm run build:h5

[email protected] build:h5
taro build --type h5 --env production

👽 Taro v3.6.26

🙅 Failed to compile.

js/app.js from Terser
TypeError: t.replace is not a function
at Array.forEach ()

环境信息

👽 Taro v3.6.26


  Taro CLI 3.6.26 environment info:
    System:
      OS: macOS 13.2.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.13.0 - /usr/local/bin/node
      Yarn: 1.22.22 - /usr/local/bin/yarn
      npm: 8.1.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.26 => 3.6.26 
      @tarojs/components: ^3.6.26 => 3.6.26 
      @tarojs/helper: 3.6.26 => 3.6.26 
      @tarojs/mini-runner: 3.6.26 => 3.6.26 
      @tarojs/plugin-framework-vue3: 3.6.26 => 3.6.26 
      @tarojs/plugin-html: 3.6.26 => 3.6.26 
      @tarojs/plugin-platform-alipay: 3.6.26 => 3.6.26 
      @tarojs/plugin-platform-h5: ^3.6.26 => 3.6.26 
      @tarojs/plugin-platform-jd: 3.6.26 => 3.6.26 
      @tarojs/plugin-platform-qq: 3.6.26 => 3.6.26 
      @tarojs/plugin-platform-swan: 3.6.26 => 3.6.26 
      @tarojs/plugin-platform-tt: 3.6.26 => 3.6.26 
      @tarojs/plugin-platform-weapp: 3.6.26 => 3.6.26 
      @tarojs/router: 3.6.26 => 3.6.26 
      @tarojs/runtime: 3.6.26 => 3.6.26 
      @tarojs/shared: 3.6.26 => 3.6.26 
      @tarojs/taro: 3.6.26 => 3.6.26 
      @tarojs/taro-h5: 3.6.26 => 3.6.26 
      @tarojs/webpack-runner: 3.6.26 => 3.6.26 
      babel-preset-taro: 3.6.26 => 3.6.26 
      eslint-config-taro: 3.6.26 => 3.6.26 


补充信息

tarojs最开始3.5.3 发现异常
install提示依赖冲突,后升级3.6.26 install不再提示依赖冲突
旧版本信息
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @tarojs/[email protected]
npm ERR! node_modules/@tarojs/components
npm ERR! @tarojs/components@"3.5.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @tarojs/components@"^3.5.6" from @nutui/[email protected]
npm ERR! node_modules/@nutui/nutui-taro
npm ERR! @nutui/nutui-taro@"^3.3.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/zhen/.npm/eresolve-report.txt for a full report.

,升级3.6.26依然存在

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Apr 18, 2024
This was referenced Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Status: Padding
Development

No branches or pull requests

1 participant