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

fix: deprecated EmberError #47

Merged
merged 1 commit into from Aug 8, 2023

Conversation

eugenioenko
Copy link
Contributor

@eugenioenko eugenioenko commented Aug 4, 2023

Description

The module EmberError has been deprecated since ember 4.12: https://api.emberjs.com/ember/4.12/modules/@ember%2Ferror

Current import of EmberError is causing build fail when using ember-stripe-elements with Ember 5:

Error: Could not find module @ember/error imported from @adopted-ember-addons/ember-stripe-elements/services/stripev3

This PR replaces the EmberError by following the deprecation guide:
https://deprecations.emberjs.com/v4.x/#toc_deprecate-ember-error

Use of @ember/error is deprecated. This package merely re-exports the native Error class. You should replace any uses of @ember/error with the native Error.

Because EmberError just reexported native Error, this fix should not cause any braking changes

@knownasilya knownasilya merged commit 2f7c85f into adopted-ember-addons:master Aug 8, 2023
12 of 25 checks passed
@josemarluedke
Copy link
Contributor

@knownasilya can you release a new version containing this PR?

@knownasilya knownasilya added the bug Something isn't working label Aug 31, 2023
@knownasilya
Copy link
Contributor

Released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants