Discourse assign plugin failing on stable branch

Hi @joffreyjaffeux,

Another potential bug, this time regarding Discourse assign plugin.

It’s related to this line:
https://github.com/discourse/discourse-assign/blob/master/assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6#L8

At the time of running Discourse, we get the following error on console:

Uncaught Error: Could not find module `@ember/object` imported from `discourse/plugins/discourse-assign/discourse-assign/initializers/extend-for-assigns`
    at h (_ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:69574)
    at _ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:69552
    at t.module.exports.u.<computed> (_ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:69609)
    at t.module.exports.u.<computed> (_ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:69476)
    at require (_ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:69608)
    at _application-4bbf4bf6518f7480549c54813a7fe09233841e43c49675ffe7fbda7ac187d247.js:8524
    at Array.forEach (<anonymous>)
    at t.start (_application-4bbf4bf6518f7480549c54813a7fe09233841e43c49675ffe7fbda7ac187d247.js:8522)
    at preload-application-data-c20deb0418fd87f5f03266570c4f93070c8325d5b49950d7621204a44b651901.js:1
    at preload-application-data-c20deb0418fd87f5f03266570c4f93070c8325d5b49950d7621204a44b651901.js:1

Cheers,
Ismael

1 Like

Hi,

can you try to update please?

This should fix it:

https://github.com/discourse/discourse-assign/commit/7933a29fa00938d95ea147ddbf8f0b94d9fb988f

7 Likes

Awesome :clap:. Working like a charm. Thank you!

Cheers,
Ismael

4 Likes