How to update harness-options.json

I build my add-on with “cfx xpi”. I needed to move around some *.js files for the update and now the validator on upload says:

Warning: A Jetpack module listed in harness-options.json could not be found in the add-on.
Path: resources/firefox-dict-switcher/lib/iso6393.js.js

How can I re-create/update the harness-options.json? I already tried to call “cfx xpi” again but that just creates the same file. I’d just ignore this, but the reviewer also complained about it (also suggesting to just call “cfx xpi” again).

You can also try the new JPM tool which is replacing the old CFX tool :wink:

If you want to fix this with cfx rather than move to JPM, I suppose your best bet is to restart the project with cfx init. The docs don’t show any option to clean up and restart the build.

Okay, it was actually very easy. What I did:

franc = require("franc-most.js"),

What I do now that removes the warning:

franc = require("franc-most"),

This seems to be a validator-only issue, both versions seem to work fine from the user’s point of view.

1 Like