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

@tarojs/cli@3.6.18 热部署模式下(npm run dev:weapp)dist/app.js中的require函数中存在文件路径错误 #14723

Closed
Copy-Hao opened this issue Oct 30, 2023 · 3 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@Copy-Hao
Copy link

相关平台

微信小程序

复现仓库

https://github.com/Copy-Hao/Taro-Issue.git
小程序基础库: 3.1.5
使用框架: Vue 3

复现步骤

npm install
npm run dev:weapp
打开微信开发工具出现报错

期望结果

无报错 require函数中带有../prebundle前缀
如require("../prebundle/vendors-node_modules_taro_weapp_prebundle_chunk-ZE6TFWGD_js.js");

实际结果

无前缀
如require("./vendors-node_modules_taro_weapp_prebundle_chunk-ZE6TFWGD_js.js");

环境信息


@tarojs/cli@3.6.18 | MIT | deps: 23 | versions: 654
cli tool for taro
https://github.com/NervJS/taro#readme

keywords: taro, weapp

bin: taro

dist
.tarball: https://registry.npmmirror.com/@tarojs/cli/-/cli-3.6.18.tgz
.shasum: f024cad3288acdaf498999b292a7dbe9e28cd15c
.integrity: sha512-Vm73dap6hdH93xP7hZva6QtdrkOUuz6ciFArUfx1S9hSHQRGsLuKA19qHSDqAc3wFBlVzsB45A7VraLFTVmO8w==
.unpackedSize: 439.1 kB

dependencies:
@tarojs/helper: 3.6.18            adm-zip: ^0.4.13                  eslint: ^8.12.0                   latest-version: ^5.1.0            minimist: ^1.2.8                  semver: ^7.3.8
@tarojs/plugin-doctor: ^0.0.11    cli-highlight: ^2.1.11            glob: ^7.1.2                      lodash: ^4.17.21                  npm-check: ^6.0.1                 validate-npm-package-name: ^5.0.0
@tarojs/service: 3.6.18           download-git-repo: ^2.0.0         inquirer: ^8.0.0                  mem-fs-editor: ^9.6.0             ora: ^5.0.0                       xml2js: ^0.5.0
@tarojs/shared: 3.6.18            envinfo: ^7.8.1                   joi: ^17.6.0                      mem-fs: ^2.3.0                    request: ^2.88.0

maintainers:
- drchan <798095202@qq.com>
- defaultlee <weitaozsh@gmail.com>
- xuanzebin <492247143@qq.com>
- yuche <i@yuche.me>
- kyjo <bestkyjo@gmail.com>
- zakary <zakarycode@Gmail.com>
- qq592743779 <592743779@qq.com>
- advancedcat <wshx1938@163.com>
- baosiqing <baosiqing@163.com>

dist-tags:
1.x: 1.3.46                         3.0: 3.0.29                         beta: 3.7.0-beta.1                  experimental: 0.0.0-experimental.2  next: 3.2.2-beta.0
2.x: 2.2.19                         alpha: 3.7.0-alpha.26               canary: 3.8.0-canary.0              latest: 3.6.18                      theta: 3.5.0-theta.1

published 6 days ago by defaultlee <weitaozsh@gmail.com>
PS C:\Users\PeterHe\Documents\workspace\hongheng> taro info
👽 Taro v3.6.18


  Taro CLI 3.6.18 environment info:
    System:
      OS: Windows 10 10.0.22621
    Binaries:
      Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.18 => 3.6.18
      @tarojs/components: 3.6.18 => 3.6.18
      @tarojs/helper: 3.6.18 => 3.6.18
      @tarojs/plugin-framework-vue3: 3.6.18 => 3.6.18
      @tarojs/plugin-platform-alipay: 3.6.18 => 3.6.18
      @tarojs/plugin-platform-h5: 3.6.18 => 3.6.18
      @tarojs/plugin-platform-jd: 3.6.18 => 3.6.18
      @tarojs/plugin-platform-qq: 3.6.18 => 3.6.18
      @tarojs/plugin-platform-swan: 3.6.18 => 3.6.18
      @tarojs/plugin-platform-tt: 3.6.18 => 3.6.18
      @tarojs/plugin-platform-weapp: 3.6.18 => 3.6.18
      @tarojs/runtime: 3.6.18 => 3.6.18
      @tarojs/shared: 3.6.18 => 3.6.18
      @tarojs/taro: 3.6.18 => 3.6.18
      @tarojs/taro-loader: 3.6.18 => 3.6.18
      @tarojs/webpack5-runner: 3.6.18 => 3.6.18
      babel-preset-taro: 3.6.18 => 3.6.18
      eslint-config-taro: 3.6.18 => 3.6.18
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Oct 30, 2023
@liangskyli
Copy link

3.6.18版本,windows 下,react下,微信小程序也同样有问题,mac下正常

framework: 'react',
compiler: 'webpack5',

@Tenodec
Copy link

Tenodec commented Nov 4, 2023

3.6.18版本,windows 下,react下,微信小程序也同样有问题,mac下正常

framework: 'react', compiler: 'webpack5',

我也是,离谱

@Chen-jj
Copy link
Contributor

Chen-jj commented Nov 6, 2023

duplicate #14771

@Chen-jj Chen-jj closed this as completed Nov 6, 2023
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-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

4 participants