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

ember-cli-shim check errors if no shim is provided #4192

Closed
stefanpenner opened this issue Feb 28, 2016 · 7 comments
Closed

ember-cli-shim check errors if no shim is provided #4192

stefanpenner opened this issue Feb 28, 2016 · 7 comments

Comments

@stefanpenner
Copy link
Member

this prevents us from bundling shims with the future ember module.

I suspect something like this.project.findAddonByName('ember-source') will be a sufficient check

@rwjblue
Copy link
Member

rwjblue commented Mar 2, 2016

Removing the existing checks would cause extra pain to users upgrading and having the wrong versions, but we can definitely make it work properly when ember-cli-shims is not present in bower.json.

Also, we can't use findAddonByName because it isn't an addon.

@stefanpenner
Copy link
Member Author

@rwjblue i think you misread, if that addon is present no shims for ember are required. Otherwise it should do the existing flow.

@rwjblue
Copy link
Member

rwjblue commented Mar 2, 2016

[email protected] provided shims for both Ember Data and Ember. If [email protected] is present with ember-data@^2.3.0 we need to provide an accurate message telling them to change what they are including.

@rwjblue
Copy link
Member

rwjblue commented Mar 2, 2016

I agree that the presence of ember-source changes things a bit (because once that happens ember-cli-shims is not needed anymore), but the real issue is that when ember-cli-shims is not present in bower.json at all we throw an error.

@rwjblue
Copy link
Member

rwjblue commented Mar 2, 2016

I submitted #4200 to address, can you review?

@rwjblue
Copy link
Member

rwjblue commented Mar 2, 2016

Also, FWIW, you are correct. I misread initially and thought you were suggesting to use project.findAddonByName('ember-cli-shims'). Sorry about that...

@stefanpenner
Copy link
Member Author

I likely left the description too ambiguous

@bmac bmac closed this as completed in #4200 Mar 5, 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

No branches or pull requests

2 participants