lblblong / tarojs-router-next

Taro 小程序路由库/自动生成带参数类型提示的路由方法/允许传递任意类型、任意大小的参数数据/同步的路由方法调用/koa体验一致的路由中间件
https://lblblong.github.io/tarojs-router-next/
MIT License
248 stars 23 forks source link

Taro 3x 运行时报错 #45

Closed virzs closed 2 years ago

virzs commented 2 years ago
./node_modules/tarojs-router-next/dist/router/index.js
Module not found: Error: Can't resolve 'src/func/isNil' in 'xxx\node_modules\tarojs-router-next\dist\router'
resolve 'src/func/isNil' in 'E:\Projects\Work\MJK\efms_mini_program_taro\node_modules\tarojs-router-next\dist\router'
  Parsed request is a module
  using description file: xxx\node_modules\tarojs-router-next\package.json (relative path: ./dist/router)

查看代码发现实际导入的应该是 dist 文件夹下 func\isNil 文件,所有路径为 src 的都有这个报错

config/index.js 中我只是按文档引入了 tarojs-router-next-plugin

lblblong commented 2 years ago

了解,问题已修复,请安装 2.8.1

virzs commented 2 years ago

了解,问题已修复,请安装 2.8.1

非常感谢,可以正常使用了