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.

Doesn't work with flag template-only-glimmer-components

See original GitHub issue

with this add-on installed and template-only-glimmer-components turned on wrapping div is being created. It would be nice to provide an element as root to attach auto generated class to.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rtabladacommented, Apr 15, 2019

When working with Sparkles Components you can do something like:

import Component from 'sparkles-component';
import podNames from 'ember-component-css/pod-names';

export default class ReportConfigButton extends Component {
  get styleNamespace() {
    return podNames['foo-bar'];
  }
}

Where foo-bar is the path for the current component.

I’d imagine that this is similar to what would be wanted when working with the let AST transform since at build time we have access to the current module path.

0reactions
webarkcommented, Dec 27, 2019

@BryanCrotaz I’m sorry that you are running into this issue. 😕 I will release the new beta version soon where you should have access to the class.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Doesn't work with flag template-only-glimmer-components #293
The way template-only-glimmer-components is that if there is now component.js file in the component folder outer div will not be generated.
Read more >
Can addons use template-only components? - Ember.JS
Since addons cannot assume the value of that flag in the consuming app, they currently cannot take advantage of the feature.
Read more >
Dynamically determine existence of template only Ember ...
The component doesn't seem to be registered in that case. Does anyone know a solution that would work for template-only glimmer components too?...
Read more >
Ember.js Template Imports: Part 3 - Chris Krycho
The problem is tractable for us, too — but it's probably not tractable ... flag anything used only in the template as an...
Read more >
Creating Web Components with Glimmer | Mainmatter
Second, the standalone and self-contained nature of web components creates an API, that is not only straight-forward to use, but is also easy...
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