Skip to content

Commit

Permalink
DEV: Disable RAISE_ON_DEPRECATION (discourse#17351)
Browse files Browse the repository at this point in the history
Some plugins/themes are still awaiting updates for some deprecations, and they started raising errors in development. It's not clear that the errors are development-only, so it can be quite confusing for developers.

Disabling this flag for now until we can make the messages clearer and fix up existing deprecation issues in themes/plugins.
  • Loading branch information
davidtaylorhq authored Jul 6, 2022
1 parent 59c8774 commit 6c49ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/discourse/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function (environment) {
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV.EmberENV.RAISE_ON_DEPRECATION = true;
ENV.EmberENV.RAISE_ON_DEPRECATION = false;
}

if (environment === "test") {
Expand All @@ -47,7 +47,7 @@ module.exports = function (environment) {
ENV.APP.rootElement = "#ember-testing";
ENV.APP.autoboot = false;

ENV.EmberENV.RAISE_ON_DEPRECATION = true;
ENV.EmberENV.RAISE_ON_DEPRECATION = false;
}

if (environment === "production") {
Expand Down

0 comments on commit 6c49ec3

Please sign in to comment.