You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lunrjs has en issue olivernn/lunr.js#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
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 ultrabug/mkdocs-static-i18n#313 (comment) and fixed in 8925cae. 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 olivernn/lunr.js#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
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: