Repository navigation
v2.4.2 - Module Format Fix
🔧 Critical Fix - Module Specifier Error
Fixed
- Build Format: Changed from ES module to IIFE format
- Compatibility: Now properly loads in Decky Loader without module resolution errors
Root Cause
Previous version output ES module format (import ... from) but Decky Loader expects IIFE format. Browser cannot resolve bare module specifiers like '@decky/ui' without a bundler.
Technical Details
- Output format:
es→iife - Bundle name:
TrainerManagerPlugin - External dependencies mapped to globals:
@decky/ui→DFL,@decky/api→DeckyAPI - React 19 and react-icons still fully bundled (~600KB)
Installation
cd ~/Downloads
wget https://github.com/yzi111/steam-deck-trainer-manager/releases/download/v2.4.2/trainer-manager-v2.4.2-complete.zip
unzip trainer-manager-v2.4.2-complete.zip -d ~/homebrew/pluginloader/plugins/
cd ~/homebrew/pluginloader/plugins/TrainerManager
python3 -m pip install -r requirements.txt --userRestart Decky Loader or reboot your Steam Deck.
This version fixes the "Failed to resolve module specifier" error by using IIFE format instead of ES modules.