-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ember 4.x incompatibility [due to deprecated manager-capabilities.modifiers-3-13] #378
Comments
Heads up. I have a feeling this package isn't maintained or monitored anymore. There are a number of unanswered issues/PRs/questions in here. I'm not an official anything here! Just been watching an issue for awhile! |
Ran ember-cli-update (--to 4.1.0) BREAKING CHANGE: probably broke compat with older node/ember/ember-cli :-/
Ah, you're probably right...last human commit in the default branch appears about 2 years old: I'll see if I can breath a little life into it with a PR/fork, but I just noticed that
I was hoping maybe I could just tweak the version here:
|
2 hours later here's what I have 🤣 export default setModifierManager(
(owner) => ({
- capabilities: capabilities('3.13'),
+ capabilities: capabilities('3.22'),
createModifier(factory) {
- return new factory.class();
+ return new factory();
}, |
Fork available in case anyone cares https://github.com/jacobq/ember-did-resize-modifier/tree/jacobq/ember-4x - "ember-did-resize-modifier": "^1.0.0",
+ "ember-did-resize-modifier": "jacobq/ember-did-resize-modifier#566bf6ef1f85d727987e06547aab13d323dff254", |
Have to use >=3.22 modifierCapabilities See https://deprecations.emberjs.com/v3.x/#toc_manager-capabilities-modifiers-3-13
I'd recommend ember-on-resize-modifier as what looks to be a drop in replacement which is compatible with Ember v4. |
becomes and error in Ember 4.x:
Invalid modifier manager compatibility specified
Repro here: https://github.com/jacobq/repro-ember-did-resize-incompat-with-4x
ember new proj
cd proj
ember install ember-did-resize-modifier
ember g controller application
ember s
The text was updated successfully, but these errors were encountered: