Ambiguous path is not allowed in tagged template
See original GitHub issueWhen running with the new no-implicit-this
rule, my test files are being picked up, for example:
test('something', async function(assert) {
this.set('thing', {
id: 123
});
await render(hbs`{{my-thing thing=thing}}`);
});
Ambiguous path 'thing' is not allowed. Use '@thing'
But the test fails if I change it to that.
It’s only complaining about a small selection of tests, despite there being many other similar tests (I’m not sure what it special about the few).
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Secret detection CI job fails on tag pipeline - GitLab.org
Push a tag to the project, see the secret_detection fail with: fatal: ambiguous argument 'refs/remotes/origin/main... refs/remotes/origin/v3. 3.0 ...
Read more >What is the preferred meaning of the ambiguous {path} tag? - TeX ...
First of all, note that tags are added based on what the poster of the question specifies. As such, you are not forced...
Read more >Template function call ambiguity error - c++ - Stack Overflow
I renamed the class and it executes fine (ideone.com/ygVUcr). Not sure why min is conflicting with std::min . – Mahesh. May 15, 2015...
Read more >Invalid Action Flow Error - OutSystems 11 Documentation
You have a Switch element in your Action that does not have the Otherwise path. Recommended action. Update the Switch element in the...
Read more >Template literals (Template strings) - JavaScript | MDN
However, a tagged template literal may not result in a string; it can be used ... Tags allow you to parse template literals...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hmm, there are a few different pieces here I think.
eslint-plugin-hbs
.eslint-plugin-hbs
is hard coded to use the 0.8.x version ofember-template-lint
(see here) which makes interop quite a bit trickier. I created https://github.com/psbanka/eslint-plugin-hbs/issues/25 to chat through that.@thing
, it should instead bethis.thing
. Do the tests pass if you do it that way?Thanks for testing and reporting!
Ok thanks, I’ll track that issue you linked to!
What about the other point I mentioned? Would I be right in thinking, that to create a failing test I should add:
{{helper}}
Here: https://github.com/ember-template-lint/ember-template-lint/blob/master/test/unit/rules/lint-no-implicit-this-test.js#L23 ?