● Webpack █████████████████████████ setup (3%)
watch run
⠋ 即将开始启动编译,请稍等~ [webpack-dev-server] Project is running at:
[webpack-dev-server] Loopback: http://localhost:10086/ [webpack-dev-server] On Your Network (IPv4): http://192.168.1.2:10086/ [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:10086/ [webpack-dev-server] Content not from webpack is served from '/Users/jianhua/work/vue3-taro/dist' directory
[webpack-dev-server] 404s will fallback to '/index.html'
/Users/jianhua/work/vue3-taro/node_modules/.pnpm/webpack-virtual-modules@0.5.0/node_modules/webpack-virtual-modules/lib/index.js:132
finalInputFileSystem._writeVirtualFile(modulePath, stats, contents);
^
TypeError: finalInputFileSystem._writeVirtualFile is not a function
at VirtualModulesPlugin.writeModule (/Users/jianhua/work/vue3-taro/node_modules/.pnpm/webpack-virtual-modules@0.5.0/node_modules/webpack-virtual-modules/src/index.ts:155:26)
at /Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/src/index.ts:129:23
at Array.forEach ()
at TaroPrebundle. (/Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/src/index.ts:115:33)
at Generator.next ()
at /Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/dist/index.js:34:71
at new Promise ()
at __awaiter (/Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/dist/index.js:30:12)
at TaroPrebundle.postCompilerStart (/Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/dist/index.js:102:16)
at /Users/jianhua/work/vue3-taro/nodemodules/.pnpm/@tarojs webpack5-runner@3.6.11@babel core@7.22.9@swc core@1.3.23@vue compiler-sfc@3.3.4_po_cahfkwcvan24dyagss3m4kuahe/node_modules/@tarojs/webpack5-runner/src/index.h5.ts:98:18
Node.js v20.3.0
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
相关平台
H5
复现仓库
https://github.com/agileago/vue3-taro
git@github.com:agileago/vue3-taro.git
浏览器版本: chrome100**小程序基础库: 3.0 使用框架: Vue 3**
复现步骤
👽 Taro v3.6.11
启动 读取env环境变量 development 启动 读取env环境变量 development Tips:
● Webpack █████████████████████████ setup (3%)
watch run
⠋ 即将开始启动编译,请稍等~ [webpack-dev-server] Project is running at: [webpack-dev-server] Loopback: http://localhost:10086/ [webpack-dev-server] On Your Network (IPv4): http://192.168.1.2:10086/ [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:10086/ [webpack-dev-server] Content not from webpack is served from '/Users/jianhua/work/vue3-taro/dist' directory [webpack-dev-server] 404s will fallback to '/index.html' /Users/jianhua/work/vue3-taro/node_modules/.pnpm/webpack-virtual-modules@0.5.0/node_modules/webpack-virtual-modules/lib/index.js:132 finalInputFileSystem._writeVirtualFile(modulePath, stats, contents); ^
TypeError: finalInputFileSystem._writeVirtualFile is not a function at VirtualModulesPlugin.writeModule (/Users/jianhua/work/vue3-taro/node_modules/.pnpm/webpack-virtual-modules@0.5.0/node_modules/webpack-virtual-modules/src/index.ts:155:26) at /Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/src/index.ts:129:23 at Array.forEach ()
at TaroPrebundle. (/Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/src/index.ts:115:33)
at Generator.next ()
at /Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/dist/index.js:34:71
at new Promise ()
at __awaiter (/Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/dist/index.js:30:12)
at TaroPrebundle.postCompilerStart (/Users/jianhua/work/vue3-taro/node_modules/.pnpm/@tarojs webpack5-prebundle@3.6.11_postcss@8.4.27_vue@3.3.4_webpack@5.88.2/node_modules/@tarojs/webpack5-prebundle/dist/index.js:102:16)
at /Users/jianhua/work/vue3-taro/nodemodules/.pnpm/@tarojs webpack5-runner@3.6.11@babel core@7.22.9@swc core@1.3.23@vue compiler-sfc@3.3.4_po_cahfkwcvan24dyagss3m4kuahe/node_modules/@tarojs/webpack5-runner/src/index.h5.ts:98:18
Node.js v20.3.0 ELIFECYCLE Command failed with exit code 1. ELIFECYCLE Command failed with exit code 1.
进程已结束,退出代码为 1
期望结果
能跑
实际结果
不能跑
环境信息