We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行npx ytt -c ytt.config.ts 时报错,下面是控制台输出和依赖版本
zhaolinxiao@zlx site % npx ytt -c ytt.config.ts ✔ 找到配置文件: /Users/zhaolinxiao/workspace/site/ytt.config.ts 11:37:52 ✔ 获取数据并生成代码完毕 11:37:55 jsxBracketSameLine is deprecated. ERROR Error: Debug Failure. 11:37:55 at /Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:831968 at String.replace (<anonymous>) at dn (/Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:831917) at Object.e.createDetachedDiagnostic (/Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:840922) at le (/Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:1015550) at _e (/Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:1015613) at ue (/Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:1015438) at Be (/Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:1018385) at Re (/Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:1017442) at /Users/zhaolinxiao/workspace/site/node_modules/yapi-to-typescript/node_modules/prettier/parser-typescript.js:22:1058069 zhaolinxiao@zlx site % npm ls yapi-to-typescript [email protected] /Users/zhaolinxiao/workspace/site └── [email protected] zhaolinxiao@zlx site % npm ls prettier [email protected] /Users/zhaolinxiao/workspace/site ├── [email protected] ├─┬ [email protected] │ └─┬ @umijs/[email protected] │ └── [email protected] └─┬ [email protected] ├─┬ [email protected] │ └── [email protected] └── [email protected] zhaolinxiao@zlx site % cat .prettierrc { "proseWrap": "always", "printWidth": 20, "singleQuote": true, "trailingComma": "all", "bracketSpacing": false, "jsxBracketSameLine": false, "tabWidth": 2, "semi": false } zhaolinxiao@zlx site % cat ytt.config.ts import { Config } from "yapi-to-typescript"; export default { outputFilePath: 'src/api/declare', requestFunctionFilePath: 'src/api/request.ts', reactHooks: { enabled: true }, comment: {}, serverUrl: 'http://yapi.xxx.com/', projects: [ { token: 'my token', categories: [ { id: 0 } ] } ] } as Config
The text was updated successfully, but these errors were encountered:
jsxBracketSameLine is deprecated 估计是这个配置在新版本被移除了,试试删掉运行一下
Sorry, something went wrong.
No branches or pull requests
运行npx ytt -c ytt.config.ts 时报错,下面是控制台输出和依赖版本
The text was updated successfully, but these errors were encountered: