Closed oneumyvakin closed 23 hours ago
Thanks for reporting. Please report this to the i18n plugin. We don't officially support this plugin, and without it, Vietnamese search works, so it must be related to the plugin. Closing as upstream.
Reopened due to https://github.com/ultrabug/mkdocs-static-i18n/issues/313#issuecomment-2355890746 and fixed in 8925cae63. This still prints a warning, which we'd need to take to Lunr Languages, as I've tried to fix it but to no avail. However, search works now.
Context
No response
Bug description
lunrjs has en issue https://github.com/olivernn/lunr.js/issues/324 when working in strict mode ("use strict";) Since 8.3.7 "use strict"; added to the beginning of search bundle. This lead to the issue search in blower doesn't work because of JS error
search.07f07601.min.js:8 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'console') at Object.warn (search.07f07601.min.js:8:61) at t.Pipeline.warnIfFunctionNotRegistered (search.07f07601.min.js:17:393) at t.Pipeline. (search.07f07601.min.js:18:319)
at Array.forEach ()
at t.Pipeline.add (search.07f07601.min.js:18:288)
at t.Builder. (lunr.multi.min.js:1:686)
at t.Builder.use (search.07f07601.min.js:40:3184)
at t.Builder. (search.07f07601.min.js:40:17975)
at t (index.ts:192:2)
at new H (search.07f07601.min.js:40:17829)
This issue happened only if Vietnamese locale exists in i18n plugin
Related links
Reproduction
[Uploading 9.5.33-vietnamese-search.zip…]()
Steps to reproduce
theme: name: material
plugins:
Browser
No response
Before submitting