-
Notifications
You must be signed in to change notification settings - Fork 23
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
When using in an addon the helper throws unexpected error #55
Comments
Did you figure this out? What ember versions are you using and are there anything notable about your app? This add-on is reasonably popular and there is CI testing all supported LTS versions as well as ember release/beta/canary, so it's probably something specific in your setup or interaction with other admins you are using. |
I am also experiencing the exact same issue. Update: |
Edit The following post actually works, the fix was to install the add-on in the production dependencies:
@chancancode, @rwjblue , we should mention it in the installation procedure. Same issue here when trying your add-on in my add-on, which runns with
The use of the
{{#let (element this.tagName) as |Tag|}}
<Tag class="my-tag">hello</Tag>
{{/let}} Its JS class is already populated: import Component from '@ember/component'
export default class TotoComponent extends Component {}
import { module, test } from 'qunit'
import { setupRenderingTest } from 'ember-qunit'
import { render } from '@ember/test-helpers'
import { hbs } from 'ember-cli-htmlbars'
module('Integration | Component | toto', function(hooks) {
setupRenderingTest(hooks)
test('it renders', async function(assert) {
await render(hbs`<Toto @tag="span" />`)
assert.dom().hasText('hello')
})
})
|
is this still an issue? can we close? <3 |
When I use the following code directly in
application.hbs
it works:Scenario with error:
This component comes from an addon
throws the following error:
What do I miss here?
The text was updated successfully, but these errors were encountered: