-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install edited vite.config.js, but didn't add the 'path' and 'vue' import #27
Comments
Thank you for the heads up, @michapietsch-streamline Let me know if anything more comes by, good or bad 😄 |
@ijpatricio Hi there! Just wanted to share my experience setting up Mingle for the first time in an existing app. I found three issues, but all were solveable :)
FilamentView::registerRenderHook(
'panels::head.end',
fn(): string => Blade::render("@stack('mingles')")
);
|
Hey @jackwh Thank you for the insights! I have to take care of the rest of things.
Warning I'll soon make something much better in terms of QoL/DX. I'll come and update here as well. Thanks a lot everyone, of the insights!! <?php
namespace App\Filament\Filament\Pages;
use Filament\Pages\Page;
use Filament\Support\Facades\FilamentView;
use Filament\View\PanelsRenderHook;
use Illuminate\Foundation\Vite;
use Illuminate\Support\Facades\Blade;
class DemoVue extends Page
{
protected static ?string $navigationIcon = 'icon-vue';
protected static string $view = 'filament.filament.pages.demo-vue';
public function mount()
{
if (app()->environment('local')) {
FilamentView::registerRenderHook(
name: PanelsRenderHook::HEAD_START,
hook: fn() => app(Vite::class)->reactRefresh(),
);
}
FilamentView::registerRenderHook(
name: PanelsRenderHook::HEAD_START,
hook: fn() => Blade::render("@stack('mingles')"),
);
}
}
`´` |
Hey,
I ran
php artisan mingle:install
, and it added the code to resolve the@mingle
alias, as well as thevue
plugin, but it failed to addimport path from 'path'
andimport vue from '@vitejs/plugin-vue'
.It was a quick fix, but maybe that's a QOL thing to ensure.
The text was updated successfully, but these errors were encountered: