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.

V1Addon with ember-source@3.28 does not work with App with ember-source@v3.25

See original GitHub issue

I think it’s because addons are resolving their capabilities local to them rather than the host app. because setComponentTemplate (used in the output of co-located components), is referenced as Ember._setComponentTemplate in the app, and in the addon, referenced as: _component.setComponentTemplate (an import from the module (and real modules don’t exist until ember-source@3.27)).

shouldn’t ember-cli-babel ignore whatever is going on in the addon, and determine ember-source version from the host app?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
NullVoxPopulicommented, Jan 11, 2022

Seems related to: https://github.com/emberjs/ember.js/issues/19700

can you make a repro? would it be a monorepo with two ember-source versions?

yup, can do! 🎉

1reaction
NullVoxPopulicommented, Jan 11, 2022

I have the same problem on 3.25.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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