User Agent: Mozilla/5.0 (Windows NT 6.0; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release) Build ID: 20130617145905 Steps to reproduce: - Updated Addon SDK to version 1.14 (was 1.12) - Refactored Toolbar icon code according https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/adding-toolbar-button.html (before it used deprecated chrome.components.classes API) - For that added among other code one new require rule: var widgets = require("widgets"); - cfx run -p h77xx8r2.dev Actual results: ModuleNotFoundError: unable to satisfy: require(widgets) from C:\Users\nsteiner\Git\senseo\lib\main.js:9: Looked for it in: C:\Users\nsteiner\Git\senseo\lib\widgets.js C:\Users\nsteiner\Projekte\addon-sdk-1.14\lib\widgets.js C:\Users\nsteiner\Git\senseo\lib\widgets.js Expected results: I expected that required widgets.js is found like every other required sdk script that is also requested, e.g. windows, panel, tabs, page-mod Firefox 22 instance starts up and the new Toolbar button behaves like the old one. In the Toolbar button article I can see that a new sdk directory is part of the reqired path. This article https://blog.mozilla.org/addons/2013/03/26/announcing-add-on-sdk-1-14/ mentions some major changes of how to deal with SDK apis. But I'm not able to map this information to my problem.
The module name that you require() is 'widget': singular, not plural. Please reopen this bug if you're still having this problem with the corrected module name.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.