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

taro dev跑h5开启懒加载报错,浏览器打不开 #17217

Open
Pinchuan opened this issue Jan 23, 2025 · 0 comments
Open

taro dev跑h5开启懒加载报错,浏览器打不开 #17217

Pinchuan opened this issue Jan 23, 2025 · 0 comments

Comments

@Pinchuan
Copy link

相关平台

H5

复现仓库

https://gitee.com/binquan_Liang/taro-vue-ui-v3.git
浏览器版本: chrome129
使用框架: Vue 3

复现步骤

babel.config.js配置如下:
module.exports = {
presets: [
[
'taro',
{
framework: 'vue3',
ts: true,
'dynamic-import-node': true
}
]
],
plugins: []
}
跑完npm run dev:h5,然后浏览器打开就报错

期望结果

正常运行项目

实际结果

浏览器打开报错,报错如下:
runtime.js:36 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'call')
at webpack_require (runtime.js:36:33)
at fn (runtime.js:590:21)
at eval (app.boot.js:6:70)
at webpack_require.a (runtime.js:109:13)
at eval (app.boot.js:1:21)
at ./src/app.boot.js (app.js:7124:1)
at webpack_require (runtime.js:36:33)
at fn (runtime.js:590:21)
at eval (app.config.ts:1:1)

环境信息

Taro CLI 3.6.15 environment info:
System:
      OS: Windows 11 10.0.22000
    Binaries:
      Node: 16.20.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
      npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.15 => 3.6.15 
      @tarojs/components: 3.6.15 => 3.6.15 
      @tarojs/helper: 3.6.15 => 3.6.15 
      @tarojs/plugin-framework-react: ^3.6.25 => 3.6.28 
      @tarojs/plugin-framework-vue3: 3.6.15 => 3.6.15
      @tarojs/plugin-html: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-alipay: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-h5: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-jd: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-qq: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-swan: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-tt: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-weapp: 3.6.15 => 3.6.15
      @tarojs/runtime: 3.6.15 => 3.6.15
      @tarojs/shared: 3.6.15 => 3.6.15
      @tarojs/taro: 3.6.15 => 3.6.15
      @tarojs/taro-loader: 3.6.15 => 3.6.15
      @tarojs/webpack5-runner: 3.6.15 => 3.6.15
      babel-preset-taro: 3.6.15 => 3.6.15
      eslint-config-taro: 3.6.15 => 3.6.15
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

1 participant