-
Notifications
You must be signed in to change notification settings - Fork 143
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
v2 addon files not resolvable when brought into app through v1 addon #1175
Comments
Is moving the dep to dependencies an option? |
Yeah, I've faced the same issue here in my project and the workaround was add the dep to the project dependencies. |
`ember-focus-trap` needs to be a dependency because of this: embroider-build/embroider#1175
I'm seeing this even when not adding other addons that also reference |
Still getting the same error
focus-trap only used in ember-bootstrap
i have added i did a temporary fix by removing it from ember-bootstrap, waiting to be fixed. |
The scenario where this comes up seems to be:
This was uncovered for
ember-focus-trap
(a v2 addon), see josemarluedke/ember-focus-trap#59.In my particular case I have
ember-boostrap
(v1) depend on it. Another addon (ember-bootstrap-changeset-validation
) depends on that, but its dummy app fails when running in Embroider safe mode:Module not found: Error: Can't resolve 'ember-focus-trap/modifiers/focus-trap.js'
. See https://github.com/kaliber5/ember-bootstrap-changeset-validations/runs/5792294552?check_suite_focus=true. However strangely enough, it works in optimized mode! (see CI scenario).Adding
ember-focus-trap
as a devDepencency toember-bootstrap-changeset-validation
fixes the issue. But that's obviously not expected.The text was updated successfully, but these errors were encountered: