I want to use laravel mix and installed node modules but when i import laravel mix by- const mix = require('laravel-mix'); it says could not find declaration file for modules 'laravel-mix' any suggestion please.
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.copyDirectory('resources/backend', 'public/backend');
mix.js('resources/js/app.js', 'public/backend/js');
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire