From 6c49ec39ea520195e00d31d57da33608af278d65 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 6 Jul 2022 04:56:16 +0100 Subject: [PATCH] DEV: Disable RAISE_ON_DEPRECATION (#17351) 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. --- app/assets/javascripts/discourse/config/environment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/config/environment.js b/app/assets/javascripts/discourse/config/environment.js index c98cb76aaf2..b8dc3564e1c 100644 --- a/app/assets/javascripts/discourse/config/environment.js +++ b/app/assets/javascripts/discourse/config/environment.js @@ -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") { @@ -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") {