From 500c4e8a2f5fd268619e60fb47581cb6185fb2f1 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Wed, 7 Dec 2022 15:38:20 +0100 Subject: [PATCH] Already handled by `app/webpacker/controllers/index.js` Controller were instanced twice. --- app/webpacker/packs/application.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/webpacker/packs/application.js b/app/webpacker/packs/application.js index 86dab8481a..21b1ffce26 100644 --- a/app/webpacker/packs/application.js +++ b/app/webpacker/packs/application.js @@ -1,13 +1,4 @@ /* eslint no-console:0 */ - -// StimulusJS -import { Application } from "stimulus"; -import { definitionsFromContext } from "stimulus/webpack-helpers"; - -const application = Application.start(); -const context = require.context("controllers", true, /.js$/); -application.load(definitionsFromContext(context)); - import CableReady from "cable_ready"; import mrujs from "mrujs"; import { CableCar } from "mrujs/plugins";