# Silence resolver deprecation

**URL:** <https://discuss.emberjs.com/t/silence-resolver-deprecation/18003>\
**Category:** Uncategorized\
**Created:** [June 26, 2020, 1:21am UTC](https://discuss.emberjs.com/t/silence-resolver-deprecation/18003 "2020-06-26T01:21:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thisFunction](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/thisfunction/32/13327_2.png) [@thisFunction](https://discuss.emberjs.com/u/thisFunction)\
**Post date:** [June 26, 2020, 1:21am UTC](https://discuss.emberjs.com/t/silence-resolver-deprecation/18003/1 "2020-06-26T01:21:50Z")

</div>

Hi, I’m getting the following error in my initializer tests: `Error: Using the globals resolver is deprecated. Use the ember-resolver package instead. See https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver`

I’m trying to silence it as I’m unable to fix it but cannot even do that. In deprecation-workflow I have the following, but neither works:

```auto
    { handler: 'silence', matchId: 'ember.globals-resolver' },
    { handler: 'silence', matchId: 'ember.deprecate-globals-resolver' },

```

As a side note, here is the code from my app.js:

```auto
import Application from '@ember/application';
import loadInitializers from 'ember-load-initializers';
import config from 'app-name/config/environment';
import Resolver from 'ember-resolver';

export default class App extends Application {
  modulePrefix = config.modulePrefix;

  podModulePrefix = config.podModulePrefix;

  Resolver = Resolver;
}

loadInitializers(App, config.modulePrefix);

```

Thanks!

---

<div class="post-metadata">

**Author:** ![dknutsen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/dknutsen/32/16471_2.png) [@dknutsen](https://discuss.emberjs.com/u/dknutsen)\
**Post date:** [July 1, 2020, 4:30pm UTC](https://discuss.emberjs.com/t/silence-resolver-deprecation/18003/2 "2020-07-01T16:30:21Z")

</div>

Are you sure this is coming from your app code and not from an addon?

---

<div class="post-metadata">

**Author:** ![thisFunction](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/thisfunction/32/13327_2.png) [@thisFunction](https://discuss.emberjs.com/u/thisFunction)\
**Post date:** [July 1, 2020, 6:26pm UTC](https://discuss.emberjs.com/t/silence-resolver-deprecation/18003/3 "2020-07-01T18:26:41Z")

</div>

I created a new initializer and the test for that initializer fails, so I assume it’s a problem with my app, but could be wrong. Any pointers how I can debug this?

---

<div class="post-metadata">

**Author:** ![dknutsen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/dknutsen/32/16471_2.png) [@dknutsen](https://discuss.emberjs.com/u/dknutsen)\
**Post date:** [July 1, 2020, 8:08pm UTC](https://discuss.emberjs.com/t/silence-resolver-deprecation/18003/4 "2020-07-01T20:08:26Z")

</div>

Your app.js code looks pretty standard. I’m not sure why your initializer would be doing anything weird (but I also don’t know what it looks like either 😁). My first thought is that sometimes these warnings are from other addons. My starting point is either looking in the stack trace from the error or just doing some searching in your node\_modules to see what is using the Resolver in a deprecated manner.

---

<div class="post-metadata">

**Author:** ![thisFunction](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/thisfunction/32/13327_2.png) [@thisFunction](https://discuss.emberjs.com/u/thisFunction)\
**Post date:** [July 1, 2020, 11:31pm UTC](https://discuss.emberjs.com/t/silence-resolver-deprecation/18003/5 "2020-07-01T23:31:02Z")

</div>

Ok, thanks! I’ll poke around the error stack trace some more 👀
