Skip to content
New issue

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

[bug] yarn write-translations —locale zh error #164

Open
geometryolife opened this issue Aug 3, 2022 · 1 comment
Open

[bug] yarn write-translations —locale zh error #164

geometryolife opened this issue Aug 3, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@geometryolife
Copy link
Collaborator

Document Bug Report

Describe the document's bug:

[ERROR] Error while attempting to extract Docusaurus translations from source code file at "node_modules/@cmfcmf/docusaurus-search-local/lib/client/theme/SearchBar/generated.d.ts".
[ERROR] SyntaxError: /home/ubuntu/i/starcoin-cookbook/node_modules/@cmfcmf/docusaurus-search-local/lib/client/theme/SearchBar/generated.d.ts: Missing initializer in const declaration. (2:32)

1 | export function tokenize(input: any): any[];

2 | export const mylunr: typeof lunr;
| ^
3 | import * as lunr from "lunr";
4 |
at instantiate (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:72:32)
at constructor (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:359:12)
at Object.raise (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:3339:19)
at Object.parseVar (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:15383:16)
at Object.parseVarStatement (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:15176:10)
at Object.parseVarStatement (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:10323:31)
at Object.parseStatementContent (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:14718:21)
at Object.parseStatementContent (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:10364:18)
at Object.parseStatement (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:14643:17)
at Object.parseExportDeclaration (/home/ubuntu/i/starcoin-cookbook/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:16023:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@geometryolife geometryolife added bug Something isn't working help wanted Extra attention is needed labels Aug 3, 2022
@geometryolife
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant