close

[Solved] Module not found: Error: Can’t resolve ‘laravel-vite-plugin/inertia-helper’

I am trying to install laravel breeze package But I am facing the following error Module not found: Error: Can’t resolve ‘laravel-vite-plugin/inertia-helper’ in Laravel. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.

How Module not found: Error: Can’t resolve ‘laravel-vite-plugin/inertia-helper’ Error Occurs?

I am trying to install the laravel breeze package But I am facing the following error:

Module not found: Error: Can't resolve 'laravel-vite-plugin/inertia-helper'

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve Module not found: Error: Can’t resolve ‘laravel-vite-plugin/inertia-helper’?

  1. How To Solve Module not found: Error: Can't resolve 'laravel-vite-plugin/inertia-helper'?

    To Solve Module not found: Error: Can't resolve 'laravel-vite-plugin/inertia-helper' You need to install laravel-vite-plugin first and then you are able to install breeze package just like this. First of install the laravel-vite plugin just using this command: npm install –save-dev vite laravel-vite-plugin and npm install –save-dev @vitejs/plugin-vue Then You can Install laravel/breeze: composer require laravel/breeze –dev and php artisan breeze:install vue Then you need to execute the following command: npm install and npm run dev then php artisan migrate and Now, your error must be solved. Thank you.

  2. Module not found: Error: Can't resolve 'laravel-vite-plugin/inertia-helper'

    To Solve Module not found: Error: Can't resolve 'laravel-vite-plugin/inertia-helper' You need to install laravel-vite-plugin first and then you are able to install breeze package just like this. First of install the laravel-vite plugin just using this command: npm install –save-dev vite laravel-vite-plugin and npm install –save-dev @vitejs/plugin-vue Then You can Install laravel/breeze: composer require laravel/breeze –dev and php artisan breeze:install vue Then you need to execute the following command: npm install and npm run dev then php artisan migrate and Now, your error must be solved. Thank you.

Solution 1: Install laravel-vite-plugin

You need to install laravel-vite-plugin first and then you are able to install breeze package just like this.

First of install the laravel-vite plugin just using this command.

npm install --save-dev vite laravel-vite-plugin
npm install --save-dev @vitejs/plugin-vue

Then You can Install laravel/breeze

composer require laravel/breeze --dev
php artisan breeze:install vue

Then you need to execute the following command.

npm install
  
npm run dev
php artisan migrate

and Now, your error must be solved. Thank you.

Conclusion

It’s all About this error. I hope We solved Your error comment below with Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment