Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

azbx's avatar
Level 17

Laravel Vite Issue.

htmlspecialchars(): Argument #1 ($string) must be of type string, array given

As it stands I do not have access to my site because of vite. I've upgraded my project to laravel 9.x today and just added vite, trying to compile scss.

0 likes
11 replies
tigerjun's avatar

I having the same problem. @[aeo] Are you manage to solve it?

1 like
azbx's avatar
azbx
OP
Best Answer
Level 17

@tigerjun yes

instead of having vite with the prefixes in just uses vite by itself

so change @vite('/resources/views/...') to @vite()

1 like

Please or to participate in this conversation.