-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
remove DEPRECATION: Using the global version of DS is deprecated when running tests #4418
remove DEPRECATION: Using the global version of DS is deprecated when running tests #4418
Conversation
DEPRECATION: Using the global version of DS is deprecated.
I have no idea why this change would break the build ... ? |
it looks like:
Help? |
I tried several different permutations (of the import statements) to get rid of errors. But it looks like as soon as i put an import statement (either importing Ember or DS), at the top of the file, i get a brocolli error when running: the tests build and run when: Is this an (unexpected) side effect of switching to ESlint / and or using the iffy ? Any hints appreciated |
The build is failing with the production flag because confusingly the I'm not sure what the best solution is at the moment although I can think of a few hacks to just make it work. Let me get back to you. |
Thx for that, I also see a typo there: emberDataInitialierPath |
@@ -1,8 +1,9 @@ | |||
/* eslint no-extra-semi: "off" */ | |||
|
|||
import DS from 'ember-data'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Part of the reason why the build fails is this file is not transformed before it gets added to the bower build output. One thing we could do is remove this line and add var DS = require('ember-data').default;
inside the iffe.
fixes tests failing in production mode fixes deprecation message using global DS in tests
Thx, Your 'hacks' make the build work ... |
I am unsure why exactly we need to duplicate these initializers. Ideally we can fix that issue. One possible solution might be to do what "normal" ember-cli apps do, and use ember-load-initializers... |
sounds good |
remove DEPRECATION: Using the global version of DS is deprecated.
Imported DS explicitly in tests/ember-data-initializers.js.