-
Notifications
You must be signed in to change notification settings - Fork 96
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
Babel not auto-configured when used in an addon #134
Comments
It should work properly in addons also, can you whip up a demo repo so we can all try to poke at it. |
Yeppa 🙂 Edit: I pushed an |
ok, so it looks like the issue here is that Ember-CLI considers Not sure if this behavior is documented in Ember-CLI but we should definitely document it in our README. |
@pzuraq Very relevant tomdale/ember-cli-addon-tests#106 (comment) |
Oh gosh. What a rookie mistake. 🤦♂️ Adding the I don't think that's a problem exclusive to ember-decorators, but I am happy to submit a PR adding a note to the installation instructions regarding add-ons. |
Yeah, that'd be awesome 👌 |
* build: remove babel config from index https://github.com/rwjblue/ember-decorators/issues/134 * deps: move ember-decorators to dependencies https://github.com/rwjblue/ember-decorators/issues/134#issuecomment-317174790
I think I'm having a similar issue. I don't understand the proper way to install this dependency for an addon. Everything I try lands with:
What are the correct steps for installing this in an addon? |
If you run |
Thanks, @pzuraq - yes, this is a snippet of my package.json:
|
ah, if this is an addon you'll have to include it in |
Happy to PR something, here's where I successfully landed:
|
I don't think |
Same problem when developing a lazily-loaded in-repo ember engine. The solution seems to be to make sure |
wow, I spent my whole afternoon chasing this down. I'm happy to update the documentation if someone wants to point me in the direction of how to do that. This really needs to be documented. |
@jalligator I think a "Usage in Addons" page would be great to add, and perfect for this. |
I just tried to use
ember-decorators
in an addon and was happy to see that rwjblue@9328992 removed the setup section from the README, including the setup for usage in addons.However, I still had to include the
init
patch in my addon'sindex.js
. Was that piece of the README removed by accident or should this work without manually adding the plugins inindex.js
?The text was updated successfully, but these errors were encountered: