问题描述

Koa 框架 使用 node.js 的第三方模块  path 报错



控制台报错


postman报错


原因

版本问题,把 file 全部返回查看,file.path 不存在



解决办法

把 file.path 改为 file.filepath ,错误解决


文章如有错误,恳请大家提出问题,本人不胜感激 。 不懂的地方可以评论,我都会 一 一 回复

文章对大家有帮助的话,希望大家能动手点赞鼓励,大家未来一起努力     长路漫漫,道阻且长

TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string. Received undefined相关推荐

  1. The “path“ argument must be of type string. Received undefined

    The "path" argument must be of type string. Received undefined "path"参数必须是字符串类型. ...

  2. TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string(已解决)

    这个问题是因为你的包的cill.js问题出现了识别window版本的问题,所以导致出现这种问题 解决思路 这时候VScode终端会肯定会显示这一段出错包的路径,你顺着这个找到cill.js文件,把里面 ...

  3. 运行gitbook init命令报错及问题解决办法 TypeError [ERR_INVALID_ARG_TYPE]: The “data“ argument must be of type stri

    运行gitbook init命令报错,错误信息如下: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be o ...

  4. Vue项目 报错TypeError [ERR INVALID ARG TYPE]: The “path“ argument must be of type string

    # Vue项目 报错TypeError [ERR INVALID ARG TYPE]: The "path" argument must be of type string 卡了半 ...

  5. 运行fis3 server start --type smarty启动时,报错The “data“ argument must be of type string or an instance of

    运行fis3 server start --type smarty启动时突然,报错The "data" argument must be of type string or an ...

  6. hexo部署到github时,提示typeError [ERR_INVALID_ARG_TYPE]: The “mode“ argument must be integer. Receive...

    最近在部署hexo博客到github时,遇到了这样一个报错: 查阅相关文章得知,是node版本过高导致的(我用的是v14.11.0),将node版本换为v10.16.0版本后,部署就成功了! 如果你的 ...

  7. Python报错TypeError: Tuple or struct_time argument required

    错误原因,类型出错误啦,转换不了! 我的解决: >>> time.mktime(time.localtime()) 1545053905.0 具体就看下面的! 我的报错: >& ...

  8. 成功解决TypeError: Scalar value for argument 'color' is not numeric

    成功解决TypeError: Scalar value for argument 'color' is not numeric 目录 解决问题 解决思路 解决方法 解决问题 TypeError: Sc ...

  9. TypeError: argument 1 has unexpected type 'NoneType'(解决办法)

    self.search.clicked.connect(self.search_information(e)) 在使用connect时,报TypeError: argument 1 has unexp ...

最新文章

  1. boost::mutex::scoped_lock
  2. 二分检索函数lower_bound()和upper_bound()
  3. template标签_C++核心准则T.65:使用标签分发提供函数的不同实现
  4. MyBatis知识点学习
  5. 并发模式之Future模式
  6. Android 获取联系人列表
  7. vuejs知乎_vueJS (简版)amp; 响应式原理
  8. Microsoft 安全公告 MS12-020 - 严重。请大家关注!!
  9. 5.0在python中是一个整数常量_python学习之路,基础篇-变量和常量
  10. 【Java线程池实现原理及其在美团业务中的实践】
  11. 问题adb remount提示Devices Locked
  12. Matlab画正态分布并标点
  13. 鸿蒙和米家啥区别,魅族家居接入鸿蒙!
  14. OpenEmbedded 中文手册
  15. matlab 柯西黎曼方程,柯西-黎曼方程
  16. 读书笔记-指数基金投资指南
  17. 问题 - GitLab repositories 文件夹权限异常
  18. IGMP基础原理与实验
  19. shell命令之ln
  20. android刷机刷系统

热门文章

  1. 南京卡地亚数码科技 网站维护 数据更新
  2. 腾讯云/阿里云域名申请SSL证书(https证书)SSL证书过期了
  3. 牛客练习赛52.Galahad(树状数组维护区间不相同数的和)
  4. folly库安装(2)openssl升级、python3.8安装
  5. vue配置favicon.ico图标
  6. 哈工程计算机系保研率,武汉理工VS哈工程,20保研率哈工程高,哪所值得考?学长精准分析...
  7. JavaSE第2天练习题(运算符,选择流程控制语句)
  8. 英特尔固态硬盘测试软件,AS SSD测试:IOPS值高达11万_Intel 520_固态硬盘评测-中关村在线...
  9. 隐马尔科夫模型一(概念理解)
  10. 侧扫声纳内业处理--基于HYPACK2018