datatracker icon indicating copy to clipboard operation
datatracker copied to clipboard

Need to import dependencies in js files

Open jennifer-richards opened this issue 2 years ago • 0 comments

Describe the issue

Ran into a problem, fixed by #4482, where the JS debugger was unable to inspect variables. This was caused by implicitly referring to $ to invoke jQuery in the JS file. When minified / bundled by parcel, the source map was mismatched. Adding an import $ from 'jquery' at the top of the file fixed the problem.

This undoubtedly affects other source files. Would be good to go through and make the imports explicit (or otherwise resolve the bundling problem.)

Marking as minor - only affects debugging as far as I know.

Code of Conduct

jennifer-richards avatar Sep 20 '22 16:09 jennifer-richards