@Ben_Glancy wrote:
Hi,
I had started a habit of putting actions in routes instead of the controller, but found that randomly it throws errors in some cases, complaining the action isn’t found in the controller.
EmberError {stack: “Error: Assertion Failed: An action named 'fontChan…0/roomviewer-tradehelp/assets/vendor.js:18479:39)”, description: undefined, fileName: undefined, lineNumber: undefined, message: “Assertion Failed: An action named ‘fontChanged’ wa…adehelp@controller:user/planner/edtext::ember706>”, …}code: undefineddescription: undefinedfileName: undefinedlineNumber: undefinedmessage: "Assertion Failed: An action named ‘fontChanged’ was not found in <ember-roomviewer-tradehelp@controller:user/planner/edtext::ember706>"name: "Error"number: undefinedstack: "Error: Assertion Failed: An action named ‘fontChanged’ was not found in <ember-roomviewer-tradehelp@controller:user/planner/edtext::ember706>↵ at new EmberError (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:24127:25)↵ at assert (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:24370:15)↵ at makeClosureAction (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:28714:50)↵ at exports.default (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:28395:12)↵ at http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:11949:21↵ at AppendOpcodes.evaluate (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:11725:13)↵ at VM.next (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:18901:32)↵ at VM.execute (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:18887:31)↵ at TryOpcode.handleException (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:18286:16)↵ at UpdatingVMFrame.handleException (http://localhost:4200/roomviewer-tradehelp/assets/vendor.js:18479:39)"proto: ExtendableBuiltin
Is this intended? The action exists in the router instead. Some of the other actions on the page are fine.
Thanks for any suggestions
Posts: 1
Participants: 1