-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
A helper named 'x-toggle' could not be found #33
Comments
What version of Ember-CLI? |
Give the latest version a try please. Thanks. |
@brandonjmckay I'm on 1.13.5/1.13.5 of ember and ember-data and worked for me seamlessly on ember-cli 1.13.1 |
@awwester you tried the latest version or the one before that? |
I'll double check which version of cli it is. |
@knownasilya Nope, I have only just picked up this package today and have only used this version set |
I just released a new version, give that a try. |
Will do. |
Hi Ilya, I thought perhaps updating the package version & rebuilding my project would help:
followed by....
Didn't seem to make a difference. I'm on Ember CLI 1.3.1 update Also tested on a 2nd app that suffers from the same error. |
Us as well. We are on Ember CLI 0.2.7 and have been using version 0.5.6 up to 0.5.8 however 0.5.9 and up gives us the same error as above. |
0.5.9-0.5.10 were bad releases. Does 0.5.11 work for anyone? |
I just upgraded to |
0.5.11 exhibits this error on my apps using the latest ember CLI release |
Ok, I just did the following: ember new hello
ember install ember-cli-toggle
ember g controller application
# add `{{x-toggle toggle='startCar'}}` to templates/application.hbs
# add `startCar` action to controllers/application.js
npm start And everything worked fine. I'm using ember-cli |
Can someone create a repo that reproduces this issue? That would help immensely. I can push up the test project if that would help anyone. |
I've confirmed that a fresh install works as @knownasilya previously mentioned. |
Here is a link to an Ember CLI app that does not work. There are a couple of caveats...
|
@rwjblue @stefanpenner any ideas what the issue might be here? I'm at a loss. |
Just tried again on a new app, and getting this still. |
What is it that you guys are doing that's causing this? I'm going to try to setup a test repo with the working version. |
If I explicitly import this in my app, and re-export it it works fine. |
Must be something to do with how it is exporting it into the app. |
Maybe something to do with the version of Ember CLI? |
Same for me. Ember CLI version 1.13.1 Other installed components usually has name 'app-name/components/component-name' such as define('app-name/components/x-select', ... but x-toggle is defined as define('app-name/components/x-toggle/component', ... |
Sounds like certain versions of ember-cli don't support the syntax where the template is in the addon directory. @rwjblue could that be an issue with some versions of the CLI? |
@stefanpenner any thoughts on this issue? |
@knownasilya i need a reproduction to investigate, the above provided one seems to be hitting some
|
^^ doesn't seem to describe the issue here, so I believe it to be orthogonal and maybe something with less? Anyways, if someone provides a reproduction (that works), i'll dig in. |
Closing this until someone can produce a clean reproduction. |
I ran into this problem just now. Then I created a fresh repo with just this addon installed and it was still not working. After that, I shuffled the addon files a bit and was able to make it work. So I have added those files also in above repo (in Here is how the final addon folder looks (in working condition).. |
Are you by any chance using podModulePrefix? And what version of ember-cli and addon? |
I literally just did this
ember-cli version is |
Can you give v0.6.1 a try? |
Works! Although there seems to be another issue with CSS. The theme files are not getting imported correctly I think. Because only |
See if #38 helps |
I can't use the component as it seems to make the page fail with
A helper named 'x-toggle' could not be found
.I can add a stack trace if needed. I ran
rm -rf node_modules bower_components
, then re-rannpm install && bower install
.I'm on Ember 1.13.5, EmberData 1.13.5.
The text was updated successfully, but these errors were encountered: