5***@qq.com
5***@qq.com
  • 发布:2022-02-23 11:43
  • 更新:2022-07-20 15:57
  • 阅读:671

#插件讨论# 【 prettier - DCloud-HBuilderX团队 】提示错误

分类:HBuilderX
关联插件: Prettier

[Format] 11:39:39.896 C:\work\HBuilderX\plugins\formator-prettier\node_modules\prettier\index.js:13676
[Format] 11:39:39.897 if (text[endNonWhitespace - 1].match(/\S/)) {
[Format] 11:39:39.897 ^
[Format] 11:39:39.897
[Format] 11:39:39.897 TypeError: Cannot read property 'match' of undefined
[Format] 11:39:39.897 at Object.calculateRange (C:\work\HBuilderX\plugins\formator-prettier\node_modules\prettier\index.js:13676:36)
[Format] 11:39:39.897 at formatRange (C:\work\HBuilderX\plugins\formator-prettier\node_modules\prettier\index.js:13877:25)
[Format] 11:39:39.897 at format (C:\work\HBuilderX\plugins\formator-prettier\node_modules\prettier\index.js:13926:12)
[Format] 11:39:39.897 at formatWithCursor (C:\work\HBuilderX\plugins\formator-prettier\node_modules\prettier\index.js:13951:12)
[Format] 11:39:39.897 at C:\work\HBuilderX\plugins\formator-prettier\node_modules\prettier\index.js:41967:15
[Format] 11:39:39.897 at Object.format (C:\work\HBuilderX\plugins\formator-prettier\node_modules\prettier\index.js:41986:12)
[Format] 11:39:39.897 at Object.<anonymous> (C:\work\HBuilderX\plugins\formator-prettier\prettier_service.js:47:27)
[Format] 11:39:39.897 at Module._compile (internal/modules/cjs/loader.js:999:30)
[Format] 11:39:39.897 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
[Format] 11:39:39.897 at Module.load (internal/modules/cjs/loader.js:863:32)

2022-02-23 11:43 负责人:无 分享
已邀请:
万腾科技

万腾科技 - 山东万腾数字科技

解决了吗

该问题目前已经被锁定, 无法添加新回复