You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to the new modules syntax, I had to revert one small section of my app (complicated story; mostly irrelevant), and in one module I missed converting inject() back to inject.service(). The error message reported is… extremely confusing:
"Assertion Failed: Injected properties must be created through helpers, see 'controller"service'"
I managed to figure it out based on the fact that I knew I'd messed with rewriting injections in those particular modules, but I can imagine that being especially confusing if you didn't. (Note that the codemod eliminates this problem by doing import { inject as service } from '@ember/service', so the error would be different—and clearer—in that case.
This error message should be much clearer.
The text was updated successfully, but these errors were encountered:
After upgrading to the new modules syntax, I had to revert one small section of my app (complicated story; mostly irrelevant), and in one module I missed converting
inject()
back toinject.service()
. The error message reported is… extremely confusing:I managed to figure it out based on the fact that I knew I'd messed with rewriting injections in those particular modules, but I can imagine that being especially confusing if you didn't. (Note that the codemod eliminates this problem by doing
import { inject as service } from '@ember/service'
, so the error would be different—and clearer—in that case.This error message should be much clearer.
The text was updated successfully, but these errors were encountered: