JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

TypeError: token.type.endsWith is not a function

发布时间 2023-06-27 14:04:32作者: 女神怪阿姨

起因

公司产品项目拉下来,安装完依赖就报这个错误

token.type.endsWith is not a function 

解决方案

发现是eslint的版本

将 babel-eslint 版本为10.1.0,把版本降为8.2.2,即重新安装指定版本的依赖。

重新安装,并重启后,解决问题

 

npm install babel-eslint@8.2.2 --save

 

    本栏目推荐文章
  • Chrome 浏览器插件 V3 版本 Manifest.json 文件中 Action 的类型(Types)、方法(Methods)和事件(Events)的属性和参数解析
  • 【转载】淘宝爬虫sign、token详解
  • go使用jwt创建token并验证token的有效性
  • 解决TypeError: string indices must be integers, not str
  • cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
  • nuxt构建失败:if (codePoint 》= 0x3_00 && codePoint (= 0x3_6F) { SyntaxError: Invalid or unexpected token
  • koa2 使用koa-body引入报错 koaBody is not a function
  • vue报错:Module parse failed: Unexpected token (5:2) You may need an appropriate loader to handle this file type.
  • (token,Spring Security)
  • 关于函数式接口中常用的Supplier、Consumer、predicate、Function的总结以及其使用场景
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们