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

After installing Search Plugin, Docusaurus translations do not work #145

Closed
DarthRevanXX opened this issue Sep 28, 2022 · 1 comment · May be fixed by mdomorffaruk/dispatch#4 or tahabiyikli/dispatch1#2
Labels
bug Something isn't working

Comments

@DarthRevanXX
Copy link

Please describe the bug you are seeing

[ERROR] SyntaxError: /app/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 |the 

### How can we best reproduce the bug?

Run `docusaurus write-translations` after installing `@cmfcmf/docusaurus-search-local`

### Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?

0.11.0

### Which Node.js version are you using?

18.9.1

### Which theme are you using?

Yes, I am using @docusaurus/theme-classic

### How does your plugin config look like?

[
require.resolve("@cmfcmf/docusaurus-search-local"),
{
language: ["en"],
}
]

Additional context

No response

@DarthRevanXX DarthRevanXX added the bug Something isn't working label Sep 28, 2022
@DarthRevanXX
Copy link
Author

Just created a dummy script to replace const to let, if somebody need:
find ./node_modules/@cmfcmf/docusaurus-search-local/lib/client/theme/SearchBar/ -type f -name "*.d.ts" -exec sed -i -e 's/const/let/g' {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant