Skip to content
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

Setting up Vue3 #275

Open
JoshuaHeathcote1987 opened this issue Dec 29, 2022 · 1 comment
Open

Setting up Vue3 #275

JoshuaHeathcote1987 opened this issue Dec 29, 2022 · 1 comment

Comments

@JoshuaHeathcote1987
Copy link

JoshuaHeathcote1987 commented Dec 29, 2022

When setting up Vue 3 I had an issue when setting up for laravel with Vite. In the app.blade.php the Mix files had to be removed and replaced with:

@Vite(['resources/js/app.js', "resources/js/Pages/{$page['component']}.vue"])

And inside the resource/js/app.js the resolve: had to be changed to 'resolve: (name) => import(./Pages/${name}.vue)'.

I am new to the front end so you can imagine this whole experience was quite the learning curve. Maybe a blessing.

@Snicser
Copy link

Snicser commented Jan 18, 2023

Hi,

Could you explain how to reproduce this issue or add more code, this isn't clear enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants