Skip to content

Need to import dependencies in js files #4483

@jennifer-richards

Description

@jennifer-richards

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

Metadata

Metadata

Assignees

Labels

acceptedbugSomething isn't workingcontrib-easyEasy dev difficulty for contributionminor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions