ohseesoftware / laravel-vite-manifest

A simple Laravel package to include Vite's compiled assets from the generated manifest file.
MIT License
8 stars 6 forks source link

syntax error, unexpected identifier "resources", expecting ")" #4

Open muisit opened 2 years ago

muisit commented 2 years ago

I created a Laravel 8 application, upgraded it to version 9, installed Breeze and the user registration boiler plating and enabled Vite. It's all new to me and I'm trying to warp my mind around the why for all these new features. All this adjusted my blade templates and I noticed that Breeze configures the blade call for vite as follows: @vite(['resources/css/app.css', 'resources/js/app.js'])

This results in a syntax error: syntax error, unexpected identifier "resources", expecting ")" I'm trying to figure out why Breeze would do this, while this package does not support it. Or does not seem to support this. What am I missing?

owenconti commented 2 years ago

@muisit If you're running Laravel 9 then you can probably use the native Vite integration rather than this package: https://laravel.com/docs/9.x/vite