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

[Bug Fix] Use Require for Checking Ember Data #239

Merged
merged 1 commit into from
Jun 28, 2016
Merged

Conversation

offirgolan
Copy link
Collaborator

Closes #224

@offirgolan offirgolan modified the milestone: 3.0 Jun 28, 2016
@offirgolan offirgolan merged commit 94aabba into master Jun 28, 2016

export function hasEmberData() {
return typeof self.DS !== 'undefined';
return require.has('ember-data');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting an error here utils.js Uncaught TypeError: Cannot read property 'has' of undefined is there a version of ember this is incompatible with? I'm on ember 2.5

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, this has been tested on Ember 1.11 to canary. What version of ember-cli are you on?

/cc @stefanpenner

@basz basz mentioned this pull request Jul 13, 2016
offirgolan added a commit that referenced this pull request Aug 18, 2016
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 this pull request may close these issues.

2 participants