taro icon indicating copy to clipboard operation
taro copied to clipboard

npx @tarojs/cli init myApp, yarn dev:h5 编译失败, index not found

Open baiachen opened this issue 3 months ago • 1 comments

请先确认

  • [x] 我已搜索并确定这个提交不是重复的

Taro 版本

v4

相关领域

None

使用框架

React

相关平台

  • [ ] 所有平台
  • [x] Web 端(H5)
  • [ ] 移动端(React-Native)
  • [ ] 鸿蒙(Harmony)
  • [ ] 鸿蒙容器(Harmony Hybrid)
  • [ ] ASCF 元服务
  • [ ] 快应用(QuickApp)
  • [ ] 所有小程序
  • [ ] 微信小程序
  • [ ] 企业微信小程序
  • [ ] 京东小程序
  • [ ] 百度小程序
  • [ ] 支付宝小程序
  • [ ] 支付宝 IOT 小程序
  • [ ] 头条小程序
  • [ ] QQ 小程序
  • [ ] 钉钉小程序
  • [ ] 飞书小程序
  • [ ] 快手小程序

小程序基础库版本

No response

问题描述

npx @tarojs/cli init myApp, 初始化新项目,taro:4.1.7 yarn dev:h5 编译失败, index not found

复现链接

复现步骤

环境信息

-

开源贡献

baiachen avatar Oct 13 '25 02:10 baiachen

pnp模式下新建的项目编译失败,改为nodeLinker: node-modules 运行正常

baiachen avatar Oct 13 '25 02:10 baiachen