ReferenceError: $ is not defined

The script uses $, but that name is unavailable in its scope. If it expects jQuery, check whether the library was included on the page and whether the dependent script runs after it. A successful request for another bundle does not establish that jQuery was loaded.
For a bundled app, import the dependency in the module that uses it. The example does this before updating the notice text. If the page relies on a shared global script, inspect the actual Network response and verify its execution order on the affected page.
Check what the caller does with $. A legacy widget that uses jQuery APIs needs that dependency in scope. If the only use is updating plain text on one element, a DOM lookup and textContent can handle that operation directly.
// With npm/bundler tooling: import $ from 'jquery'; $('.notice').text('Loaded');
Find the jQuery request and the dependent script in Network, then check which one is ready when the failing call runs.