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.

Can't resolve component from addon consumed by engine consumed by app

See original GitHub issue

I have a basic engines test app here: https://github.com/JackieChiles/et-app. The app consumes an engine (https://github.com/JackieChiles/et-engine) which in turn consumes an addon (https://github.com/JackieChiles/et-addon) and uses et-component from that addon. The following work:

But I haven’t been able to get et-component to render in et-app though a template in the engine at all: https://github.com/JackieChiles/et-engine/blob/master/addon/templates/et-template.hbs#L2

I do see et-addon/components/et-component/component and et-app/components/et-component/component in the resolver’s module names list when Ember tries to render that component, but it’s looking for et-engine/components/et-component/component.

Is there a piece that I’m missing or is this a possible bug/gap?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
timkendallcommented, Mar 5, 2016

Yeah I’m having the same issue :\ Seems like we should be able to just do something like:

export default Engine.extend({
  modulePrefix: 'registration-engine',
  Resolver,

  dependencies: {
    services: [ 'store' ],
    components: [ 'transition-group', 'one-way-controls', 'some-other-component' ]
  }
});

0reactions
JackieChilescommented, Mar 9, 2016

@timkendall Currently of course only services are supported as engine dependencies, but as already mentioned I believe injecting other types is being discussed. But, the PR that fixed the issue for me makes sense: making the engine’s addons dependencies instead of devDependencies allows them to propagate down to whatever app consumes the engine. Hope this thread helped you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

got Can't resolve 'react/jsx-runtime' error while use try to create ...
I'm new to React and had the same issue. We use Themosis as WordPress framework for a new project.
Read more >
Error: Can't resolve 'components' using Storybook. · Issue ...
Hi, I just installed Storybook on my existing Gatsby application. The installation was successful. I can access to the Storybook stories ...
Read more >
Managing Dependencies - Addons and Dependencies
When you're using dependencies that are not included in an addon, you will have to instruct Ember CLI to include your assets in...
Read more >
Frequently Asked Questions - Storybook - JS.ORG
In Storybook, you can solve this either by: Adding import React from 'react' to your component files. Adding a .babelrc that includes babel-plugin-react- ......
Read more >
A Guide to Managing Webpack Dependencies - Toptal
The first part of this blog post explains how to simplify the definition of dependencies in a project. Next, we discuss and demonstrate...
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