# Embroider - All v1 add-on services produce error:

**URL:** <https://discuss.emberjs.com/t/embroider-all-v1-add-on-services-produce-error/21663>\
**Category:** Uncategorized\
**Created:** [July 3, 2025, 7:27am UTC](https://discuss.emberjs.com/t/embroider-all-v1-add-on-services-produce-error/21663 "2025-07-03T07:27:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![everydaypanos](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/everydaypanos/32/12213_2.png) [@everydaypanos](https://discuss.emberjs.com/u/everydaypanos)\
**Post date:** [July 3, 2025, 7:27am UTC](https://discuss.emberjs.com/t/embroider-all-v1-add-on-services-produce-error/21663/1 "2025-07-03T07:27:56Z")

</div>

Hi,

I have upgraded to latest ember v6.5 and although the app builds without any errors on launch, all v1 add-on services for example `@service router` produce this error:

`helpers.js:115 Uncaught Error: Assertion Failed: Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.`

Also I have detected that all getOwner(this) inside the add-on services that have @service lines also produce undefined.

I have searched all deprecations and I haven’t found anything about that. Previous ember version v6.3 builds normally.

---

<div class="post-metadata">

**Author:** ![NullVoxPopuli](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/nullvoxpopuli/32/18691_2.png) [@NullVoxPopuli](https://discuss.emberjs.com/u/NullVoxPopuli)\
**Post date:** [July 11, 2025, 12:31pm UTC](https://discuss.emberjs.com/t/embroider-all-v1-add-on-services-produce-error/21663/2 "2025-07-11T12:31:30Z")

</div>

do you have a stack trace, or open source reproduction or anything like that? sounds fishy

---

<div class="post-metadata">

**Author:** ![jku](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jku](https://discuss.emberjs.com/u/jku)\
**Post date:** [August 5, 2025, 12:49pm UTC](https://discuss.emberjs.com/t/embroider-all-v1-add-on-services-produce-error/21663/3 "2025-08-05T12:49:00Z")

</div>

Hi,

I am also struggling with this problem after upgrading an existing app to use embroider. If you want to integrate an addon which uses a service, and you try to access this service, you get an error.

I made a minimal example if you want to have a look:

the frontend: [GitHub - jkubaile/tester](https://github.com/jkubaile/tester)

and an addon for it: [GitHub - jkubaile/tester-addon](https://github.com/jkubaile/tester-addon)

(they must be placed relative to each other to make the deps work).

As far as the addon uses a service, an error is thrown.

> ```auto
> assert.js:43 Uncaught Error: Assertion Failed: Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.
> at assert (assert.js:43:13)
> at FoobarService.getInjection (cache-fCezwMOy.js:1881:99)
> at eval (cache-fCezwMOy.js:1160:23)
> at untrack (index.js:468:12)
> at ComputedProperty.get (cache-fCezwMOy.js:1159:75)
> at FoobarService.getter [as store] (cache-fCezwMOy.js:312:23)
> at get hello (foobar.js:56:10)
> at getPossibleMandatoryProxyValue (cache-fCezwMOy.js:1646:17)
> at _getProp (cache-fCezwMOy.js:1710:15)
> at eval (index.js:112:145)
> 
> ```

Debugging it leads to the underlying getOwner(this) is null problem.

Thanks, Jörg

---

<div class="post-metadata">

**Author:** ![NullVoxPopuli](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/nullvoxpopuli/32/18691_2.png) [@NullVoxPopuli](https://discuss.emberjs.com/u/NullVoxPopuli)\
**Post date:** [August 10, 2025, 9:32pm UTC](https://discuss.emberjs.com/t/embroider-all-v1-add-on-services-produce-error/21663/4 "2025-08-10T21:32:30Z")

</div>

> (they must be placed relative to each other to make the deps work).

how are they linked? normally you have to install the addon from the filepath (rather than `npm link`) so that npm/pnpm can eliminate duplicate dependencies so things work correctly

---

<div class="post-metadata">

**Author:** ![jku](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jku](https://discuss.emberjs.com/u/jku)\
**Post date:** [August 18, 2025, 5:41am UTC](https://discuss.emberjs.com/t/embroider-all-v1-add-on-services-produce-error/21663/5 "2025-08-18T05:41:46Z")

</div>

The real app uses `npm link` to link them - the example above uses a file path. It doesn’t matter for this bug.

---

<div class="post-metadata">

**Author:** ![jku](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jku](https://discuss.emberjs.com/u/jku)\
**Post date:** [August 26, 2025, 1:06pm UTC](https://discuss.emberjs.com/t/embroider-all-v1-add-on-services-produce-error/21663/6 "2025-08-26T13:06:06Z")

</div>

After playing around with linking and another hint in the discord, this was the correct hint to fix things up. Thank you!
