Laravel-Backpack / theme-tabler

UI for Backpack v6 that uses Tabler and Bootstrap v5.
MIT License
21 stars 12 forks source link

Theme-tabler went broke when use vue.js #125

Closed miquelangeld closed 11 months ago

miquelangeld commented 11 months ago

Bug report

What I did

I have some views in my project which use Vue.Js

in V5 I load app.js like that in the blade files where I need to load vue components:

@section('content')

@endsection

@vite(config('backpack.base.vite_scripts_vue'))

In my base.php: 'vite_scripts_vue' => [ // resource file_path 'resources/js/app.js', ],

Using the V5 theme all works perfectly

But since i migrated to V6 and started to use theme-tabler, when I load app.js the theme went broke, the menu dropdowns stop to work, etc.

even without load the component, just a out-of-the-box app.js without any component the problem persists.

If I just block with devtools the vue.js file load, the theme works ok. Just by loading the main vue library, the theme stops working.

PHP VERSION:

PHP 8.1.21 (cli) (built: Jul 8 2023 07:10:19) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.21, Copyright (c) Zend Technologies with Zend OPcache v8.1.21, Copyright (c), by Zend Technologies with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans

LARAVEL VERSION:

10.16.1.0

BACKPACK PACKAGE VERSIONS:

backpack/backupmanager: v5.0.0 backpack/basset: 1.0.2 backpack/crud: 6.1.1 backpack/devtools: 2.0.3 backpack/editable-columns: 3.0.2 backpack/generators: v4.0.2 backpack/logmanager: v5.0.0 backpack/permissionmanager: 7.0.0 backpack/pro: 2.0.9 backpack/settings: 3.1.0 backpack/theme-tabler: 1.0.6

miquelangeld commented 11 months ago

Ok Still not solved but pretty sure it's my fault. Maybe I will move the question to the forum