Skip to content
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

Runtime error with action modifier #977

Open
winsmith opened this issue Dec 4, 2024 · 0 comments
Open

Runtime error with action modifier #977

winsmith opened this issue Dec 4, 2024 · 0 comments

Comments

@winsmith
Copy link

winsmith commented Dec 4, 2024

I'm getting the following runtime error after updating ember-source to v6.0:

ember.js:6711  

Error occurred:

- While rendering:
  -top-level
    application
      epm-modal-container
        epm-modal


execute @ ember.js:6711
handleException @ ember.js:6668
handleException @ ember.js:6686
throw @ ember.js:6667
evaluate @ ember.js:6357
_execute @ ember.js:6667
(anonymous) @ ember.js:6664
debug$1.runInTrackingTransaction @ ember.js:1359
execute @ ember.js:6664
rerender @ ember.js:6686
(anonymous) @ ember.js:14358
(anonymous) @ ember.js:14354
(anonymous) @ ember.js:14389
inTransaction @ ember.js:6493
_renderRoots @ ember.js:14382
_renderRootsTransaction @ ember.js:14394
_revalidate @ ember.js:14396
invoke @ ember.js:3199
flush @ ember.js:3194
flush @ ember.js:3213
_end @ ember.js:3243
end @ ember.js:3223
_run @ ember.js:3243
run @ ember.js:3223
run$1 @ ember.js:3306
_respond @ keyboard.js:29
ember.js:6667  

Error occurred:




execute @ ember.js:6667
rerender @ ember.js:6686
(anonymous) @ ember.js:14358
(anonymous) @ ember.js:14354
(anonymous) @ ember.js:14389
inTransaction @ ember.js:6493
_renderRoots @ ember.js:14382
_renderRootsTransaction @ ember.js:14394
_revalidate @ ember.js:14396
invoke @ ember.js:3199
flush @ ember.js:3194
flush @ ember.js:3213
_end @ ember.js:3243
end @ ember.js:3223
_run @ ember.js:3243
run @ ember.js:3223
run$1 @ ember.js:3306
_respond @ keyboard.js:29
ember.js:1302  Uncaught Error: The API deprecated by template-action was removed in ember-source 6.0.0. The message was: Usage of the `(action)` helper is deprecated. Migrate to native functions and function invocation.. Please see https://deprecations.emberjs.com/id/template-action for more details.
    at deprecateUntil (ember.js:1302:1)
    at ember.js:8225:1
    at Object.evaluate (ember.js:6407:1)
    at Object.evaluate (ember.js:6349:1)
    at LowLevelVM.evaluateSyscall (ember.js:6664:1)
    at LowLevelVM.evaluateInner (ember.js:6664:1)
    at LowLevelVM.evaluateOuter (ember.js:6664:1)
    at VM.next (ember.js:6711:1)
    at VM._execute (ember.js:6711:1)
    at VM.execute (ember.js:6706:1)

Seems like there's an {{action in there somewhere, probably this one:

{{#let (component (ensure-safe-component @modal._componentClass) data=@modal._data close=(action "close")) as |ModalComponent|}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant