/Users/zhengzhq/workspace/incubation-idea/fe-bill/node_modules/.pnpm/@tarojs/plugin-html@3.6.0-beta.2/dist/index.js:123
traverse(ast, {
^
TypeError: traverse is not a function
at patchMappingElements (/Users/zhengzhq/workspace/incubation-idea/fe-bill/node_modules/.pnpm/@tarojs/plugin-html@3.6.0-beta.2/src/index.ts:123:5)
at index (/Users/zhengzhq/workspace/incubation-idea/fe-bill/node_modules/.pnpm/@tarojs/plugin-html@3.6.0-beta.2/src/index.ts:30:3)
at Kernel.initPlugin (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/src/Kernel.ts:157:12)
at Kernel.resolvePlugins (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/src/Kernel.ts:130:12)
at Kernel.initPresetsAndPlugins (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/src/Kernel.ts:115:10)
at Kernel.<anonymous> (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/src/Kernel.ts:312:10)
at Generator.next (<anonymous>)
at /opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/dist/Kernel.js:8:71
at new Promise (<anonymous>)
at __awaiter (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/dist/Kernel.js:4:12)
期望结果
能够正常启动
实际结果
启动报错
环境信息
通过taro info也无法执行,会报错,如下:
➜ fe-bill git:(main) ✗ taro info
👽 Taro v3.6.0-beta.2
/Users/zhengzhq/workspace/incubation-idea/fe-bill/node_modules/.pnpm/@tarojs/plugin-html@3.6.0-beta.2/dist/index.js:123
traverse(ast, {
^
TypeError: traverse is not a function
at patchMappingElements (/Users/zhengzhq/workspace/incubation-idea/fe-bill/node_modules/.pnpm/@tarojs/plugin-html@3.6.0-beta.2/src/index.ts:123:5)
at index (/Users/zhengzhq/workspace/incubation-idea/fe-bill/node_modules/.pnpm/@tarojs/plugin-html@3.6.0-beta.2/src/index.ts:30:3)
at Kernel.initPlugin (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/src/Kernel.ts:157:12)
at Kernel.resolvePlugins (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/src/Kernel.ts:130:12)
at Kernel.initPresetsAndPlugins (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/src/Kernel.ts:115:10)
at Kernel.<anonymous> (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/src/Kernel.ts:312:10)
at Generator.next (<anonymous>)
at /opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/dist/Kernel.js:8:71
at new Promise (<anonymous>)
at __awaiter (/opt/homebrew/lib/node_modules/@tarojs/cli/node_modules/.pnpm/@tarojs/service@3.6.0-beta.2/dist/Kernel.js:4:12)
Node.js v17.8.0
相关平台
微信小程序
小程序基础库: 未知 使用框架: Vue 3
复现步骤
使用3.6.0-beta.2版本后,通过taro init一个项目,选择vue3以及nutui之后,执行启动脚本会报错,报错信息如下:
期望结果
能够正常启动
实际结果
启动报错
环境信息
通过taro info也无法执行,会报错,如下: