使用umiJS时报text.trimEnd错误,怎么解决

√ Webpack
Compiled successfully in 2.97s

DONE Compiled successfully in 2974ms 19:37:06

App running at:

  • Local: http://localhost:8000 (copied to clipboard)
  • Network: http://192.168.88.1:8000
    (node:9088) UnhandledPromiseRejectionWarning: TypeError: text.trimEnd is not a function
    at attachComments (C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\node_modules\prettier\index.js:14769:60)
    at coreFormat (C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\node_modules\prettier\index.js:14796:23)
    at format (C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\node_modules\prettier\index.js:15017:75)
    at formatWithCursor (C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\node_modules\prettier\index.js:15033:12)
    at args (C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\node_modules\prettier\index.js:50675:12)
    at Object.format (C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\node_modules\prettier\index.js:50695:12)
    at C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\lib\Html\Html.js:275:34
    at Generator.next ()
    at asyncGeneratorStep (C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\lib\Html\Html.js:86:103)
    at _next (C:\Users\Shinelon\AppData\Local\Yarn\Data\global\node_modules@umijs\core\lib\Html\Html.js:88:194)
    at
    at process._tickCallback (internal/process/next_tick.js:160:7)
    (node:9088) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was
    not handled with .catch(). (rejection id: 1)
    (node:9088) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值