Uncaught (in promise) Error: Could not find module `discourse/widgets/search-menu` imported from `discourse/theme-70/widgets/search-banner`

Hi,

I’m trying to load up a very old site. It worked a little bit ago and I need the data again. However, when I logged in, now it errors out:

Uncaught (in promise) Error: Could not find module `discourse/widgets/search-menu` imported from `discourse/theme-70/widgets/search-banner`
    l loader.js:247
    l loader.js:258
    findDeps loader.js:168
    l loader.js:262
    requireModule loader.js:24
    c auto-load-modules.js:26
    c auto-load-modules.js:20
    initialize auto-load-modules.js:50
    runInstanceInitializers Ember
    each dag-map.js:191
    walk dag-map.js:120
    each dag-map.js:66
    topsort dag-map.js:72
    Ember 4
    invoke backburner.js.js:280
    flush backburner.js.js:197
    flush backburner.js.js:358
    _end backburner.js.js:798
    _boundAutorunEnd backburner.js.js:523
    promise callback*n/< backburner.js.js:26
    flush Ember
    _scheduleAutorun backburner.js.js:964
    _ensureInstance backburner.js.js:955
    schedule backburner.js.js:648
    Ember 5
    <anonymous> start-app.js:4
    <anonymous> discourse-boot.js:20
    <anonymous> discourse-boot.js:1
loader.js:247
    didBecomeReady Ember
    invoke backburner.js.js:280
    flush backburner.js.js:197
    flush backburner.js.js:358
    _end backburner.js.js:798
    _boundAutorunEnd backburner.js.js:523
    (Async: promise callback)
    n backburner.js.js:26
    flush Ember
    _scheduleAutorun backburner.js.js:964
    _ensureInstance backburner.js.js:955
    schedule backburner.js.js:648
    Ember 5
    <anonymous> start-app.js:4
    <anonymous> discourse-boot.js:20
    <anonymous> discourse-boot.js:1

I can not find the fix to this anywhere and I don’t know why it snapped out of existence. Help appreciated.

Hi,

If we’re talking about the Search banner component, the widget has been removed in favor of the glimmer component since this PR.

Did you check if you could update the component?
If you can’t access admin, the safe mode will help.

2 Likes

Oops, forgot about that. :grimacing:

Thank you! Weirdly it seems like the components are packaged with the backup (almost 2 years old now)
image

1 Like

Ahah, right – that’s a lot of updates. :smile:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.