Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage in in-repo-engine #90

Open
roberkules opened this issue Sep 5, 2018 · 2 comments
Open

Usage in in-repo-engine #90

roberkules opened this issue Sep 5, 2018 · 2 comments

Comments

@roberkules
Copy link

hi,

trying to use ember-can in our app that consists of the main app and a few in-repo-engines.

we have a account-section and a corresponding account permission (read/write)

according to the docs, it should look like this:

// /lib/account/addon/abilities/account.js
export { default } from 'merchant-admin/abilities/account';

(merchant-admin is the main app, account is one of the in-repo-engines and account is also the name of the ability created in the main app)

I tried that, but then I'm getting this error:

Uncaught Error: Could not find module account/abilities/account imported from (require)

is it even possible to import from the main app (into the in-repo-engine)? or is there maybe another step missing?

ember:          3.2.2
ember-engines:  0.5.20
ember-can:      1.1.0
@Exelord
Copy link
Collaborator

Exelord commented Sep 6, 2018

Im not sure if in repo addons have access to the app. They are not engines and they should stay totally independent from the parent

@roberkules
Copy link
Author

@Exelord not sure I understand, it's a in-repo-engine, why isn't it an engine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants