question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot identify a component in rule snippet

See original GitHub issue

Embroider is having issues with components from ember-power-select.

https://github.com/cibernox/ember-power-select/issues/1368

cannot identify a component in rule snippet: “{{power-select/before-options}}”

I believe the issue is that Resolver’s standardDasherize method is not checking if the ast.type is a “Template”. https://github.com/embroider-build/embroider/blob/master/packages/compat/src/resolver.ts#L224

The same error is also appearing for ember-basic-dropdown.

cannot identify a component in rule snippet: “{{basic-dropdown-trigger}}”

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
GCheung55commented, Jun 11, 2020

BTW, It was me shared the above screenshot in Discord, I should commit an issue with a minimal reproduction in last weekend, but I was busy ATM until now. Here’s what I did for a temporary workaround:

I wasn’t sure if you had the same user name in Github, so I hesitated to tag you. 😃

- if (ast.type === 'Program' && ast.body.length > 0) {
+ if ((ast.type === 'Program' || ast.type === 'Template') && ast.body.length > 0)

That’s what I’m adding, just need to get a test to go through with “Template” as the AST type.

0reactions
GCheung55commented, Jul 8, 2020

#472 was merged. Closing. Please reopen If necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breaking with embroider: `cannot identify a component in rule ...
Build Error (WaitForTrees) cannot identify a component in rule snippet: "{{power-select/before-options}}". Info: Node 10.15.3; Ember 3.18.1; Power-select ...
Read more >
Built-in snippet not working in VS Code for React
Go to Preference - Settings - Extensions - Search for React Snippet and check if the values are correctly checked in. Share.
Read more >
Error Boundaries - React
Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI...
Read more >
Enable Snippets - Salesforce Help
Before you can use a snippet in an asset, prepare your Salesforce org for the feature and create some snippets. Make sure that...
Read more >
Add New Snippet | Altium Designer 23 User Manual
To access the Snippets panel, the UI.DesignReuse option in the Advanced Settings dialog must be disabled. The Advanced Settings dialog is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found