question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove computed-property.override deprecation

See original GitHub issue

I see this deprecation since Ember 3.9.0:

DEPRECATION: The <my-app@component:ember-modal-dialog/-tether-dialog::ember4138>#targetAttachmentClass computed property was just overriden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually. [deprecation id: computed-property.override] See https://emberjs.com/deprecations/v3.x#toc_computed-property-override for more details.

I tried to identify where targetAttachmentClass was overridden but I can’t find it 🤷‍♂ Any clue?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lukemeliacommented, Sep 17, 2019

I’m happy to review a PR to fix this but don’t have time to work on one myself currently.

1reaction
lukemeliacommented, Sep 17, 2019

Hi @jameshahn2, the reason for this error is that targetAttachmentClass is a computed property. If a value is passed in for the property, Ember’s historical behavior is that the passed value would replace the computed function. This is now deprecated, hence the warning. So we need a new way to provide a default value for targetAttachmentClass. I think that a way to do it would be to make the init method of the component(s) set targetAttachmentClass if and only if this.targetAttachmentClass is undefined.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecations Added in Ember 3.x
The private APIs propertyWillChange and propertyDidChange will be removed after the first LTS of the 3.x cycle. ... id: computed-property.override.
Read more >
How can I resolve the defineProperty deprecation error?
The problem lies in the if-else-statement at init-method. You want to define the computed property "value" dynamically. This is deprecated!
Read more >
Migrating to v7.0.0 - ESLint - Pluggable JavaScript Linter
The CLIEngine class has been deprecated ; static getErrorResults(results), static getErrorResults(results) ; static getFormatter(name), (removed ※1) ; addPlugin( ...
Read more >
Is it possible to deprecate and subsequently remove a public ...
You can remove those public properties (enabled with @api decorator) provided you have released a Managed package with isExposed = false.
Read more >
Changelog — Sanic 22.12.0 documentation - Read the Docs
BREAKING CHANGE: Moves the Inspector to a Sanic app from a simple TCP socket with a ... #2170 CompositionView deprecated and marked for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found