Closed headwindz closed 4 years ago
先基于 v1.8.0 分支开发
v1.8.0 好像有另外一个问题。
→ npm run start
> @umijs/hooks@ start /Users/michaelzheng/github/hooks
> npm run dev
> @umijs/hooks@ dev /Users/michaelzheng/github/hooks
> dumi dev
Starting the development server...
bad indentation of a sequence entry at line 11, column 11:
desc: @umijs/hooks contains a large se ...
^
YAMLException: bad indentation of a sequence entry at line 11, column 11:
desc: @umijs/hooks contains a large se ...
^
at generateError (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:167:10)
at throwError (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:173:9)
at readBlockSequence (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:962:7)
at composeNode (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:1358:12)
at readBlockMapping (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:1089:11)
at composeNode (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:1359:12)
at readDocument (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:1519:3)
at loadDocuments (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:1575:5)
at load (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:1596:19)
at Object.safeLoad (/Users/michaelzheng/github/hooks/node_modules/js-yaml/lib/js-yaml/loader.js:1618:10)
已找到问题。 index.en-US.md 里的 @ 字符导致
复现步骤:
报错信息
node版本: v12.16.1