When I was creating the Laravel project, sudden I was seeing the warning “1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)”
If you are also seeing the same warning, then you are not the one who has faced the warning, “1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)”.
Let know what is the reason to see the warning “1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)” in Laravel project and how to fix the warning.
Below are the Steps that can help you to replicate the warning/error in yours own setup:
composer create-project --prefer-dist laravel/laravel example
cd example
composer require laravel/ui
php artisan ui vue --auth
npm install vue@next vue-router@next vue-loader@next
npm install
npm run dev
Why “1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)” Error is seen:
Basically error 1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details) is seen because of autoprefixer@10.4.6 package version upgrade with @Benno to version 10.4.5 version in the package-lock.json.
How to Fix the “1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)” Error:
To fix the error 1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details), revert the autoprefixer package back to 10.4.5 version using command “npm install autoprefixer@10.4.5” and it would fix the error WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details).
Below are the possible ways to fix the Error 1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)” Error:
To fix the error, revert the autoprefixer package back to 10.4.5 version using below command:
npm install autoprefixer@10.4.5
Conclusion
“1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)” Error is seen in Laravel projection creation, reason is autoprefixer@10.4.6 package version upgrade with @Benno to version 10.4.5 version in the package-lock.json.
To Fix the Error “1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)”, revert the autoprefixer package back to 10.4.5 version using command “npm install autoprefixer@10.4.5”.