@kylemabaso The error says what the problem is. You’re trying to compile Vue files that include inline <script> and/or <style> tags.
Dec 28, 2022
7
Level 3
[Vue warn]: Template compilation error: Tags with side effect
Hi Guys.
I'm updating our code base to Splade and Laravel 9. Everything was successful, then I then began creating views but the images are all over the place. They are too big and they don't seem to be accepting any of my attributes overrides even on the dev tools.
Here's the code for root.blade.php
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Skills Panda') }}</title>
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.bunny.net/css2?family=Nunito:wght@400;600;700&display=swap">
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css" />
<!-- App css -->
<link href="{{ asset('assets/css/app.min.css') }}" rel="stylesheet" type="text/css" id="app-style"/>
<!-- icons -->
<link href="{{ asset('assets/css/icons.min.css') }}" rel="stylesheet" type="text/css" />
<!-- Head js -->
<script src="{{ asset('assets/js/head.js') }}"></script>
<!-- Scripts -->
@vite(['resources/js/app.js'])
@spladeHead
</head>
<body class="font-sans antialiased">
@splade
<script src="{{ asset('assets/js/vendor.min.js') }}"></script>
<script src="{{ asset('assets/libs/apexcharts/apexcharts.min.js) }}"></script>
<script src="{{ asset('https://apexcharts.com/samples/assets/ohlc.js') }}"></script>
<script src="{{ asset('assets/js/app.min.js') }}"></script>
</body>
</html>
Code for dashboard.blade.php
<!-- Topbar Start -->
<div class="navbar-custom">
<div class="container-fluid">
<!-- LOGO -->
<div class="logo-box">
<a href="index.html" class="logo logo-dark text-center">
<span class="logo-sm">
<img src="assets/images/logo-sm.png" alt="" height="22">
<!-- <span class="logo-lg-text-light">UBold</span> -->
</span>
<span class="logo-lg">
<img src="assets/images/logo-dark.png" alt="" height="20">
<!-- <span class="logo-lg-text-light">U</span> -->
</span>
</a>
<a href="index.html" class="logo logo-light text-center">
<span class="logo-sm">
<img src="assets/images/logo-sm.png" alt="" height="22">
</span>
<span class="logo-lg">
<img src="assets/images/logo-light.png" alt="" height="20">
</span>
</a>
</div>
<div class="clearfix"></div>
</div>
</div>
I get these errors on the console:
[Vue warn]: Template compilation error: Tags with side effect (<script> and <style>) are ignored in client component templates.
setupWebSocket @ client.ts:78
(anonymous) @ client.ts:68
client.ts:78 WebSocket connection to 'wss://localhost:5173/' failed:
setupWebSocket @ client.ts:78
fallback @ client.ts:43
(anonymous) @ client.ts:99
client.ts:48 [vite] failed to connect to websocket.
your current setup:
(browser) [::1]:5173/ <--[HTTP]--> localhost:5173/ (server)
(browser) [::1]:5173/ <--[WebSocket (failing)]--> localhost:5173/ (server)
Check out your Vite / network configuration and https://vitejs.dev/config/server-options.html#server-hmr .
(anonymous) @ client.ts:48
(anonymous) @ client.ts:99```
Please or to participate in this conversation.