Closed cah-brian-gantzler closed 1 year ago
what ember-source are you using? this is fixed in projects with sufficiently new ember-source, due to a fix landing in @glimmer/syntax
's parser
4.12.3. Used to be I kept ember data and ember source in sync. Working through ED deprecations, so cant update to 5 for ED. Is it ok to update to 5 for source and keep ED at 4?
I'm unsure -- it's worth a try! using ember-source@5.1 shows that the scenario works: https://limber.glimdown.com/edit?c=BYFxAcGcC4HpYOYEsTAK4CMB0BjA9gLawCmBGxATgLQingA2AhrVUgeHhSJCWZTXSYs2HLjySRIaYjwCMADgBsAKGUADDQgBWkAAT0kAN2LKRnELoDeu4I0jBdAX10AzCoV0ByAAKlyFWGBienBKTwBuVXwAO0gLAHEKYmIQJGiEXQBeXQAeWnYhYgA%2BZV1dAAlg%2BjwAGl14gwICSgBCZRzYfIZmYqi8WIsAIQokRmis3K7CostLAE8kYIATXQAKW3tdBCSUtIRMxOTU9IBKR0cOqZ6iyPar2hKynOHR8btdAB8ADw-Hstyvlhtkc9rpYH8Oi8xiVLoJruoNKogA&format=glimdown
So one thing we may also need to check is if your floating dep of @glimmer/syntax
is up to date in your lockfile. you may want to pin it to a newer version.
There have been some issues with pnpm and glimmer being pre v1 lately.
I have to pin all of them: https://github.com/NullVoxPopuli/limber/blob/main/package.json#L48
K, good to know, ember-code coverage looks like its bringing in 0.42 and and ember font awesome is bring in 0.27
Should be resolved in v4. Thanks for reporting! If this is still an issue, lemme know and we can reopen.
I am currently experiencing this issue with ember-source@^5.4.0
and ember-template-imports@^4.0.0
[lint:js] /home[...]/ember-app/app/components/foo.gjs
[lint:js] 4:15 error 'card' is defined but never used no-unused-vars
minimal reproduction: https://github.com/c0rydoras/gjs-linting-no-undef-reproduction related workflow: https://github.com/c0rydoras/gjs-linting-no-undef-reproduction/actions/runs/6798889824/job/18483951695
Can you try the main branch of eslint-plugin-ember?
sadly that did not fix it: https://github.com/c0rydoras/gjs-linting-no-undef-reproduction/actions/runs/6799482927/job/18485892842
Interesting. Thanks for the reproduction! Can you open an issue on eslint plugin ember? Thanks!
thank you!!
Not sure which addon is doing the linting, this one or https://github.com/ember-template-lint/ember-template-lint. Starting here
When a component is yielded on a named block, then used, the linter states that the component is undefined. This is in a test. Have not yet converted the actual use to a gjs.
Linting message
While the named block happens to be the same name as the yielded hash, I did try changing the names and the issue persisted.
I have used yielded components elsewhere with no linting issue, assuming this is specific to named blocks