Skip to content

Javascript broke after migrating the Shop to a new server

I recently migrated a shop from a server to another.

The admin site works fine.

The javascript of the shop itself is broken, and the console filled with these error messages that I previously did not have:

Uncaught Error: Script error for "domReady", needed by: domReady!_unnormalized2, domReady!_unnormalized4
https://requirejs.org/docs/errors.html#scripterror
    at makeError (require.js:168:17)
    at HTMLScriptElement.onScriptError (require.js:1738:36)

Uncaught Error: Script error for "text", needed by: text!js-translation.json_unnormalized3
https://requirejs.org/docs/errors.html#scripterror
    at makeError (require.js:168:17)
    at HTMLScriptElement.onScriptError (require.js:1738:36)

Uncaught Error: Script error for "js-cookie/js.cookie", needed by: js-cookie/cookie-wrapper
https://requirejs.org/docs/errors.html#scripterror
    at makeError (require.js:168:17)
    at HTMLScriptElement.onScriptError (require.js:1738:36)

Uncaught Error: Script error for "Magento_Ui/js/core/renderer/layout"
https://requirejs.org/docs/errors.html#scripterror
    at makeError (require.js:168:17)
    at HTMLScriptElement.onScriptError (require.js:1738:36)

And a lot more.

When I see the source files loaded, some JS is actually there such as jQuery…

Anyone knows what could be happening?