From 2c410396c2489cc06ca49acba9c8a5dc24f1a45d Mon Sep 17 00:00:00 2001 From: Mauricio Fierro Date: Thu, 14 Mar 2024 14:11:02 -0500 Subject: [PATCH] Fix imports Require to have .js extension to be able to load them in the browser of we get a mime type error. --- app/javascript/controllers/player_controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/controllers/player_controller.js b/app/javascript/controllers/player_controller.js index bab311a..8738fc0 100644 --- a/app/javascript/controllers/player_controller.js +++ b/app/javascript/controllers/player_controller.js @@ -1,9 +1,9 @@ "use strict"; import { Controller } from "@hotwired/stimulus"; -import YoutubePlayer from "./player/youtube_player"; -import { PlayingState, ReadyState, EditingState, PickingPointState } from "./player/state"; -import LoopManager from "./player/loop_manager" +import YoutubePlayer from "./player/youtube_player.js"; +import { PlayingState, ReadyState, EditingState, PickingPointState } from "./player/state.js"; +import LoopManager from "./player/loop_manager.js" /** Controller for the YouTube player custom functionality */ export default class extends Controller {