Vue + Backpack V6 #601
Replies: 3 comments 3 replies
-
I'm near the same situation. I would want to use some components in Vue 3 and I can't make them work at all, and all examples I find are in Vue 2, and previous Backpack versions. |
Beta Was this translation helpful? Give feedback.
-
Hello @miquelangeld why don't you recompile the vite assets to don't have the vue included ? That comes by default with Laravel ? We don't use it anywhere. |
Beta Was this translation helpful? Give feedback.
-
Hello, We haven’t heard back from you in a while, so we’re closing this issue for now. If you still need assistance, please don’t hesitate to reopen the issue or create a new one. Thank you, and take care! Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm desperate
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:
In my base.php:
Using 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 that load vite, the theme works ok.
Just by loading the main vue library with , the theme stops working. If I load vue3 using the scripst node in ui.php the theme works fine:
'scripts' => [
// 'js/example.js',
'https://unpkg.com/[email protected]/dist/vue.min.js',
// 'https://unpkg.com/react@16/umd/react.production.min.js',
// 'https://unpkg.com/react-dom@16/umd/react-dom.production.min.js',
],
my problem is that if I use vite to load app.js vite also load his own vue.js I tried to use @basset(resource_path('resources/js/app.js')) but it doesn't work either, it doesn't load the library
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
Beta Was this translation helpful? Give feedback.
All reactions