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

fetch is not defined - maybe your browser targets are not covering everything you need #283

Closed
BryanHunt opened this issue Aug 13, 2020 · 1 comment · Fixed by #284
Closed
Assignees

Comments

@BryanHunt
Copy link

I'm upgrading my applications to Ember 3.20 and I have run into this error:

fetch is not defined - maybe your browser targets are not covering everything you need

The root cause is the dependency to ember-fetch 6.7.2 in ember-simple-auth-token. The fix is to force the dependency to resolve to ember-fetch 8.0.2.

  "resolutions": {
    "ember-simple-auth-token/ember-fetch": "^8.0.2"
  },
@fenichelar
Copy link
Owner

@BryanHunt In order to retain backwards compatibility, we can't force any specific version of ember-fetch. ember-simple-auth-token only supported ember-fetch v4, v5, and v6. By adding support for v8, this issue should be resolved.

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

Successfully merging a pull request may close this issue.

2 participants