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

v4.0.0-beta.85 vite 官方模板 h5 dev 启动有问题,build 产物无法运行 #15848

Open
skywalker512 opened this issue Jun 5, 2024 · 2 comments

Comments

@skywalker512
Copy link

相关平台

H5

**浏览器版本: Google Chrome 125.0.6422.113 (正式版本) (x86_64) **
使用框架: Vue 3

复现步骤

npm i -g @tarojs/cli@beta

选择 vue3 vite 模板

pnpm run dev:h5
pnpm run build:h5

期望结果

dev 正常运行,build 产物正常运行

实际结果

dev 报错 Vite Error, /@fs/data/co/taro-hy-2/node_modules/.vite/deps/chunk-ROME4SDB.h5.js?v=cd31ee89 optimized info should be defined

build 产物报错

Uncaught ReferenceError: Cannot access 'n' before initialization
at common.b43f8f14.js:1:1411

环境信息

👽 Taro v4.0.0-beta.85


  Taro CLI 4.0.0-beta.85 environment info:
    System:
      OS: Linux 6.6
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v20.11.1/bin/yarn
      npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/components: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/helper: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-framework-vue3: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-html: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-platform-alipay: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-platform-h5: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-platform-jd: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-platform-qq: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-platform-swan: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-platform-tt: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/plugin-platform-weapp: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/runtime: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/shared: 4.0.0-beta.85 => 4.0.0-beta.85 
      @tarojs/taro: 4.0.0-beta.85 => 4.0.0-beta.85 
      babel-preset-taro: 4.0.0-beta.85 => 4.0.0-beta.85 
      eslint-config-taro: 4.0.0-beta.85 => 4.0.0-beta.85 
@viewweiwu
Copy link

可以帮忙看看吗?h5 官方模板都跑不起来呀

@hatiwowo
Copy link

同问,我是react vite模版,删除node_modules重新安装还是会报Vite Error, /@fs/Users/hatiwowo/Demo/lastDance/node_modules/.vite/deps/chunk-ROME4SDB.h5.js?v=7a8bd25e optimized info should be defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants