Show your composer.json instead :) Those are php packages, so package.json isnt used
Laravel 10 cannot install some Blade Icons
Laravel newbie here.
Migrated from Laravel 9 to Laravel 10 and some icons stopped working, on reinstall:
composer require davidhsianturi/blade-bootstrap-icons
composer require codeat3/blade-google-material-design-icons
Both return
Problem 1
- Root composer.json requires davidhsianturi/blade-bootstrap-icons ^1.3 -> satisfiable by davidhsianturi/blade-bootstrap-icons[v1.3.0].
- davidhsianturi/blade-bootstrap-icons v1.3.0 requires illuminate/support ^8.0|^9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0] but these were not loaded, likely because it conflicts with another require.
Official repos for these don't have anything listed in issues, and by searching "icons" on this forum I have not managed to find anything similar.
I assume the error message above has everything I need to solve it, however I'm confused and feel I should ask people who understand what they're doing to doublecheck. This has to do with Illuminate version? Or Icon Creators not updating their requirements? Or is it my package.json?
My package.json
{
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build",
"watch": "vite build --watch"
},
"devDependencies": {
"axios": "^1.1.2",
"laravel-vite-plugin": "^0.7.2",
"vite": "^4.0.0"
}
}
Any help would be much appreciated!
Also another newbie question: If I only use specific icons from multiple Blade Icons packages, would that affect page loading times or on build only icons that are actually used out of these packages will be served to the client?
It seems that you upgraded to laravel 10 already. Sadly that package isnt ready for laravel 10 yet, so you cannot use it. There are a few PRs to update it but they are still pending https://github.com/davidhsianturi/blade-bootstrap-icons/pulls
Please or to participate in this conversation.