prettier问题?
一个奇怪的问题,大佬们,这个问题我不清楚是怎么发生的,想求问一下是否有大佬知道如何解决
Creating an optimized production build...
Failed to compile.
[eslint]
src/components/Comment/index.tsx
Line 393:17: Insert `␍⏎·········` prettier/prettier
Line 394:11: Insert `··` prettier/prettier
Line 395:1: Insert `··` prettier/prettier
Line 396:1: Replace `············` with `··············` prettier/prettier
Line 397:1: Insert `··` prettier/prettier
Line 398:1: Replace `············` with `··············` prettier/prettier
Line 399:1: Insert `··` prettier/prettier
Line 400:1: Replace `············` with `··············` prettier/prettier
Line 401:1: Insert `··` prettier/prettier
Line 402:11: Insert `··` prettier/prettier
Line 403:1: Insert `··` prettier/prettier
Search for the keywords to learn more about each error.
ELIFECYCLE Command failed with exit code 1.
build failed exit status 1new_answer is not exist build failed
The command '/bin/bash -c script/build_plugin.sh' returned a non-zero code: 1
回复
1个回答

test
2024-06-26
把文件行尾格式从LF改为CRLF即可,或这个改prettier配置
{
endOfLine:'auto'
}
回复

适合作为回答的
- 经过验证的有效解决办法
- 自己的经验指引,对解决问题有帮助
- 遵循 Markdown 语法排版,代码语义正确
不该作为回答的
- 询问内容细节或回复楼层
- 与题目无关的内容
- “赞”“顶”“同问”“看手册”“解决了没”等毫无意义的内容