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.

Template only glimmer components not working in 3.2?

See original GitHub issue

Seems that in 3.2 template-only-glimmer-components do not work.

Steps to reproduce:

  • Enable template-only-glimmer-components feature toggle
  • Create a new component
  • Add some content to template
  • Remove the component js file
  • See that rendered HTML still has ember-view div wrapper

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
rwjbluecommented, Sep 8, 2018

Thanks for the reproduction @dpatz, sorry I missed that.

I’ll try to test that out and see if I can spot what’s going on…

1reaction
lougreenwoodcommented, Sep 8, 2018

@nightire For my issue you’re 100% correct. Seems that my use of ember-cli-notifications was pulling in ember-css-modules, which was breaking my template-only components.

Adding this to my package.json fixed it for me:

  "resolutions": {
    "ember-cli-notifications/**/ember-css-modules": "1.0.0-beta.1"
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Glimmer Components - Octane Upgrade Guide - Ember Guides
In Octane, template-only components have only an hbs file and no JavaScript file. Since Octane, a template-only component shares a subset of features...
Read more >
could not find module `@glimmer/component` when adding ...
This causes the error Could not find module @glimmer/component imported from ember-quickstart/components/people-list . There is no build error, ...
Read more >
Components - ember-cli-typescript
Glimmer Components are defined in one of three ways: with templates only, ... Don't let that stop you, though: types in your component...
Read more >
ember-in-viewport - NPM Package Overview - Socket - Socket.dev
Lazy loading responsive images (see dummy-artwork for an example artwork component). Visit http://localhost:4200/infinity-modifier to see it in action ...
Read more >
Glimmer: Blazing Fast Rendering for Ember.js, Part 1
Components should become first-class primitives of the rendering engine, allowing for runtime optimizations. Templates are just a ...
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