Closed lupainformatica closed 1 year ago
Hello @lupainformatica I just created a new Laravel 10 project and installed BladewindUI successfully. Can you try the process again? My output is below.
➜ sandbox laravel new test-bladewindui
_ _
| | | |
| | __ _ _ __ __ ___ _____| |
| | / _` | '__/ _` \ \ / / _ \ |
| |___| (_| | | | (_| |\ V / __/ |
|______\__,_|_| \__,_| \_/ \___|_|
Creating a "laravel/laravel" project at "./test-bladewindui"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v10.2.2)
- Downloading laravel/laravel (v10.2.2)
- Installing laravel/laravel (v10.2.2): Extracting archive
Created project in /Users/mkocansey/Projects/sandbox/test-bladewindui
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 107 installs, 0 updates, 0 removals
- Locking brick/math (0.11.0)
- Locking dflydev/dot-access-data (v3.0.2)
- Locking doctrine/inflector (2.0.6)
- Locking doctrine/lexer (3.0.0)
- Locking dragonmantank/cron-expression (v3.3.2)
- Locking egulias/email-validator (4.0.1)
- Locking fakerphp/faker (v1.22.0)
- Locking filp/whoops (2.15.2)
- Locking fruitcake/php-cors (v1.2.0)
- Locking graham-campbell/result-type (v1.1.1)
- Locking guzzlehttp/guzzle (7.7.0)
- Locking guzzlehttp/promises (2.0.0)
- Locking guzzlehttp/psr7 (2.5.0)
- Locking guzzlehttp/uri-template (v1.0.1)
- Locking hamcrest/hamcrest-php (v2.0.1)
- Locking laravel/framework (v10.12.0)
- Locking laravel/pint (v1.10.0)
- Locking laravel/sail (v1.22.0)
- Locking laravel/sanctum (v3.2.5)
- Locking laravel/serializable-closure (v1.3.0)
- Locking laravel/tinker (v2.8.1)
- Locking league/commonmark (2.4.0)
- Locking league/config (v1.2.0)
- Locking league/flysystem (3.15.1)
- Locking league/flysystem-local (3.15.0)
- Locking league/mime-type-detection (1.11.0)
- Locking mockery/mockery (1.5.1)
- Locking monolog/monolog (3.3.1)
- Locking myclabs/deep-copy (1.11.1)
- Locking nesbot/carbon (2.66.0)
- Locking nette/schema (v1.2.3)
- Locking nette/utils (v4.0.0)
- Locking nikic/php-parser (v4.15.5)
- Locking nunomaduro/collision (v7.5.2)
- Locking nunomaduro/termwind (v1.15.1)
- Locking phar-io/manifest (2.0.3)
- Locking phar-io/version (3.2.1)
- Locking phpoption/phpoption (1.9.1)
- Locking phpunit/php-code-coverage (10.1.2)
- Locking phpunit/php-file-iterator (4.0.2)
- Locking phpunit/php-invoker (4.0.0)
- Locking phpunit/php-text-template (3.0.0)
- Locking phpunit/php-timer (6.0.0)
- Locking phpunit/phpunit (10.1.3)
- Locking psr/container (2.0.2)
- Locking psr/event-dispatcher (1.0.0)
- Locking psr/http-client (1.0.2)
- Locking psr/http-factory (1.0.2)
- Locking psr/http-message (2.0)
- Locking psr/log (3.0.0)
- Locking psr/simple-cache (3.0.0)
- Locking psy/psysh (v0.11.18)
- Locking ralouphie/getallheaders (3.0.3)
- Locking ramsey/collection (2.0.0)
- Locking ramsey/uuid (4.7.4)
- Locking sebastian/cli-parser (2.0.0)
- Locking sebastian/code-unit (2.0.0)
- Locking sebastian/code-unit-reverse-lookup (3.0.0)
- Locking sebastian/comparator (5.0.0)
- Locking sebastian/complexity (3.0.0)
- Locking sebastian/diff (5.0.3)
- Locking sebastian/environment (6.0.1)
- Locking sebastian/exporter (5.0.0)
- Locking sebastian/global-state (6.0.0)
- Locking sebastian/lines-of-code (2.0.0)
- Locking sebastian/object-enumerator (5.0.0)
- Locking sebastian/object-reflector (3.0.0)
- Locking sebastian/recursion-context (5.0.0)
- Locking sebastian/type (4.0.0)
- Locking sebastian/version (4.0.1)
- Locking spatie/backtrace (1.4.0)
- Locking spatie/flare-client-php (1.3.6)
- Locking spatie/ignition (1.8.0)
- Locking spatie/laravel-ignition (2.1.3)
- Locking symfony/console (v6.2.10)
- Locking symfony/css-selector (v6.2.7)
- Locking symfony/deprecation-contracts (v3.2.1)
- Locking symfony/error-handler (v6.2.10)
- Locking symfony/event-dispatcher (v6.2.8)
- Locking symfony/event-dispatcher-contracts (v3.2.1)
- Locking symfony/finder (v6.2.7)
- Locking symfony/http-foundation (v6.2.10)
- Locking symfony/http-kernel (v6.2.10)
- Locking symfony/mailer (v6.2.8)
- Locking symfony/mime (v6.2.10)
- Locking symfony/polyfill-ctype (v1.27.0)
- Locking symfony/polyfill-intl-grapheme (v1.27.0)
- Locking symfony/polyfill-intl-idn (v1.27.0)
- Locking symfony/polyfill-intl-normalizer (v1.27.0)
- Locking symfony/polyfill-mbstring (v1.27.0)
- Locking symfony/polyfill-php72 (v1.27.0)
- Locking symfony/polyfill-php80 (v1.27.0)
- Locking symfony/polyfill-uuid (v1.27.0)
- Locking symfony/process (v6.2.10)
- Locking symfony/routing (v6.2.8)
- Locking symfony/service-contracts (v3.2.1)
- Locking symfony/string (v6.2.8)
- Locking symfony/translation (v6.2.8)
- Locking symfony/translation-contracts (v3.2.1)
- Locking symfony/uid (v6.2.7)
- Locking symfony/var-dumper (v6.2.10)
- Locking symfony/yaml (v6.2.10)
- Locking theseer/tokenizer (1.2.1)
- Locking tijsverkoyen/css-to-inline-styles (2.2.6)
- Locking vlucas/phpdotenv (v5.5.0)
- Locking voku/portable-ascii (2.0.1)
- Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 107 installs, 0 updates, 0 removals
- Downloading doctrine/inflector (2.0.6)
- Downloading doctrine/lexer (3.0.0)
- Downloading symfony/polyfill-ctype (v1.27.0)
- Downloading dragonmantank/cron-expression (v3.3.2)
- Downloading psr/container (2.0.2)
- Downloading symfony/polyfill-mbstring (v1.27.0)
- Downloading fruitcake/php-cors (v1.2.0)
- Downloading ralouphie/getallheaders (3.0.3)
- Downloading guzzlehttp/uri-template (v1.0.1)
- Downloading laravel/pint (v1.10.0)
- Downloading voku/portable-ascii (2.0.1)
- Downloading vlucas/phpdotenv (v5.5.0)
- Downloading tijsverkoyen/css-to-inline-styles (2.2.6)
- Downloading symfony/polyfill-uuid (v1.27.0)
- Downloading psr/event-dispatcher (1.0.0)
- Downloading psr/log (3.0.0)
- Downloading egulias/email-validator (4.0.1)
- Downloading symfony/polyfill-intl-grapheme (v1.27.0)
- Downloading ramsey/collection (2.0.0)
- Downloading brick/math (0.11.0)
- Downloading nunomaduro/termwind (v1.15.1)
- Downloading nesbot/carbon (2.66.0)
- Downloading monolog/monolog (3.3.1)
- Downloading league/mime-type-detection (1.11.0)
- Downloading nette/utils (v4.0.0)
- Downloading nette/schema (v1.2.3)
- Downloading dflydev/dot-access-data (v3.0.2)
- Downloading league/config (v1.2.0)
- Downloading laravel/serializable-closure (v1.3.0)
- Downloading laravel/framework (v10.12.0)
- Downloading laravel/sanctum (v3.2.5)
- Downloading hamcrest/hamcrest-php (v2.0.1)
- Downloading mockery/mockery (1.5.1)
- Downloading nunomaduro/collision (v7.5.2)
- Downloading sebastian/version (4.0.1)
- Downloading sebastian/type (4.0.0)
- Downloading sebastian/recursion-context (5.0.0)
- Downloading sebastian/object-reflector (3.0.0)
- Downloading sebastian/object-enumerator (5.0.0)
- Downloading sebastian/global-state (6.0.0)
- Downloading sebastian/exporter (5.0.0)
- Downloading sebastian/environment (6.0.1)
- Downloading sebastian/diff (5.0.3)
- Downloading sebastian/comparator (5.0.0)
- Downloading sebastian/code-unit (2.0.0)
- Downloading sebastian/cli-parser (2.0.0)
- Downloading phpunit/php-timer (6.0.0)
- Downloading phpunit/php-text-template (3.0.0)
- Downloading phpunit/php-invoker (4.0.0)
- Downloading phpunit/php-file-iterator (4.0.2)
- Downloading theseer/tokenizer (1.2.1)
- Downloading sebastian/lines-of-code (2.0.0)
- Downloading sebastian/complexity (3.0.0)
- Downloading sebastian/code-unit-reverse-lookup (3.0.0)
- Downloading phpunit/php-code-coverage (10.1.2)
- Downloading phar-io/version (3.2.1)
- Downloading phar-io/manifest (2.0.3)
- Downloading phpunit/phpunit (10.1.3)
- Downloading spatie/laravel-ignition (2.1.3)
- Installing doctrine/inflector (2.0.6): Extracting archive
- Installing doctrine/lexer (3.0.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
- Installing webmozart/assert (1.11.0): Extracting archive
- Installing dragonmantank/cron-expression (v3.3.2): Extracting archive
- Installing symfony/deprecation-contracts (v3.2.1): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing fakerphp/faker (v1.22.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
- Installing symfony/http-foundation (v6.2.10): Extracting archive
- Installing fruitcake/php-cors (v1.2.0): Extracting archive
- Installing psr/http-message (2.0): Extracting archive
- Installing psr/http-client (1.0.2): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-factory (1.0.2): Extracting archive
- Installing guzzlehttp/psr7 (2.5.0): Extracting archive
- Installing guzzlehttp/promises (2.0.0): Extracting archive
- Installing guzzlehttp/guzzle (7.7.0): Extracting archive
- Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
- Installing guzzlehttp/uri-template (v1.0.1): Extracting archive
- Installing laravel/pint (v1.10.0): Extracting archive
- Installing symfony/yaml (v6.2.10): Extracting archive
- Installing voku/portable-ascii (2.0.1): Extracting archive
- Installing phpoption/phpoption (1.9.1): Extracting archive
- Installing graham-campbell/result-type (v1.1.1): Extracting archive
- Installing vlucas/phpdotenv (v5.5.0): Extracting archive
- Installing symfony/css-selector (v6.2.7): Extracting archive
- Installing tijsverkoyen/css-to-inline-styles (2.2.6): Extracting archive
- Installing symfony/var-dumper (v6.2.10): Extracting archive
- Installing symfony/polyfill-uuid (v1.27.0): Extracting archive
- Installing symfony/uid (v6.2.7): Extracting archive
- Installing symfony/routing (v6.2.8): Extracting archive
- Installing symfony/process (v6.2.10): Extracting archive
- Installing symfony/polyfill-php72 (v1.27.0): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
- Installing symfony/polyfill-intl-idn (v1.27.0): Extracting archive
- Installing symfony/mime (v6.2.10): Extracting archive
- Installing symfony/service-contracts (v3.2.1): Extracting archive
- Installing psr/event-dispatcher (1.0.0): Extracting archive
- Installing symfony/event-dispatcher-contracts (v3.2.1): Extracting archive
- Installing symfony/event-dispatcher (v6.2.8): Extracting archive
- Installing psr/log (3.0.0): Extracting archive
- Installing egulias/email-validator (4.0.1): Extracting archive
- Installing symfony/mailer (v6.2.8): Extracting archive
- Installing symfony/error-handler (v6.2.10): Extracting archive
- Installing symfony/http-kernel (v6.2.10): Extracting archive
- Installing symfony/finder (v6.2.7): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
- Installing symfony/string (v6.2.8): Extracting archive
- Installing symfony/console (v6.2.10): Extracting archive
- Installing ramsey/collection (2.0.0): Extracting archive
- Installing brick/math (0.11.0): Extracting archive
- Installing ramsey/uuid (4.7.4): Extracting archive
- Installing psr/simple-cache (3.0.0): Extracting archive
- Installing nunomaduro/termwind (v1.15.1): Extracting archive
- Installing symfony/translation-contracts (v3.2.1): Extracting archive
- Installing symfony/translation (v6.2.8): Extracting archive
- Installing nesbot/carbon (2.66.0): Extracting archive
- Installing monolog/monolog (3.3.1): Extracting archive
- Installing league/mime-type-detection (1.11.0): Extracting archive
- Installing league/flysystem (3.15.1): Extracting archive
- Installing league/flysystem-local (3.15.0): Extracting archive
- Installing nette/utils (v4.0.0): Extracting archive
- Installing nette/schema (v1.2.3): Extracting archive
- Installing dflydev/dot-access-data (v3.0.2): Extracting archive
- Installing league/config (v1.2.0): Extracting archive
- Installing league/commonmark (2.4.0): Extracting archive
- Installing laravel/serializable-closure (v1.3.0): Extracting archive
- Installing laravel/framework (v10.12.0): Extracting archive
- Installing laravel/sail (v1.22.0): Extracting archive
- Installing laravel/sanctum (v3.2.5): Extracting archive
- Installing nikic/php-parser (v4.15.5): Extracting archive
- Installing psy/psysh (v0.11.18): Extracting archive
- Installing laravel/tinker (v2.8.1): Extracting archive
- Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive
- Installing mockery/mockery (1.5.1): Extracting archive
- Installing filp/whoops (2.15.2): Extracting archive
- Installing nunomaduro/collision (v7.5.2): Extracting archive
- Installing sebastian/version (4.0.1): Extracting archive
- Installing sebastian/type (4.0.0): Extracting archive
- Installing sebastian/recursion-context (5.0.0): Extracting archive
- Installing sebastian/object-reflector (3.0.0): Extracting archive
- Installing sebastian/object-enumerator (5.0.0): Extracting archive
- Installing sebastian/global-state (6.0.0): Extracting archive
- Installing sebastian/exporter (5.0.0): Extracting archive
- Installing sebastian/environment (6.0.1): Extracting archive
- Installing sebastian/diff (5.0.3): Extracting archive
- Installing sebastian/comparator (5.0.0): Extracting archive
- Installing sebastian/code-unit (2.0.0): Extracting archive
- Installing sebastian/cli-parser (2.0.0): Extracting archive
- Installing phpunit/php-timer (6.0.0): Extracting archive
- Installing phpunit/php-text-template (3.0.0): Extracting archive
- Installing phpunit/php-invoker (4.0.0): Extracting archive
- Installing phpunit/php-file-iterator (4.0.2): Extracting archive
- Installing theseer/tokenizer (1.2.1): Extracting archive
- Installing sebastian/lines-of-code (2.0.0): Extracting archive
- Installing sebastian/complexity (3.0.0): Extracting archive
- Installing sebastian/code-unit-reverse-lookup (3.0.0): Extracting archive
- Installing phpunit/php-code-coverage (10.1.2): Extracting archive
- Installing phar-io/version (3.2.1): Extracting archive
- Installing phar-io/manifest (2.0.3): Extracting archive
- Installing myclabs/deep-copy (1.11.1): Extracting archive
- Installing phpunit/phpunit (10.1.3): Extracting archive
- Installing spatie/backtrace (1.4.0): Extracting archive
- Installing spatie/flare-client-php (1.3.6): Extracting archive
- Installing spatie/ignition (1.8.0): Extracting archive
- Installing spatie/laravel-ignition (2.1.3): Extracting archive
52 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
laravel/sail ................................................................................................. DONE
laravel/sanctum .............................................................................................. DONE
laravel/tinker ............................................................................................... DONE
nesbot/carbon ................................................................................................ DONE
nunomaduro/collision ......................................................................................... DONE
nunomaduro/termwind .......................................................................................... DONE
spatie/laravel-ignition ...................................................................................... DONE
81 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found
> @php artisan key:generate --ansi
INFO Application key set successfully.
INFO Application ready! Build something amazing.
➜ sandbox cd test-bladewindui
➜ test-bladewindui composer require mkocansey/bladewind
./composer.json has been updated
Running composer update mkocansey/bladewind
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking mkocansey/bladewind (v2.1.8)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing mkocansey/bladewind (v2.1.8): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
laravel/sail ................................................................................................. DONE
laravel/sanctum .............................................................................................. DONE
laravel/tinker ............................................................................................... DONE
mkocansey/bladewind .......................................................................................... DONE
nesbot/carbon ................................................................................................ DONE
nunomaduro/collision ......................................................................................... DONE
nunomaduro/termwind .......................................................................................... DONE
spatie/laravel-ignition ...................................................................................... DONE
81 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found
Using version ^2.1 for mkocansey/bladewind
➜ test-bladewindui php artisan vendor:publish --provider="Mkocansey\Bladewind\BladewindServiceProvider" --tag=bladewind-public --force
INFO Publishing [bladewind-public] assets.
Copying directory [vendor/mkocansey/bladewind/public] to [public/vendor/bladewind] ........................... DONE
➜ test-bladewindui
I installed it with blade breeze start pack
All steps above done in a fresh new install, as displayed below.
After install, I just add an alert at the end of page welcome.blade.php and got the same error below.
To make it word, I had to create a symbolic link in app/resources/view/components => /vendor/mkocansey/bladewind/resources/views/components
I am running Windows 11 Pro
@lupainformatica which syntax did you use to include the alert?
<x-bladewind.alert>Testing the alert</x-bladewind.alert>
or
<x-bladewind::alert>Testing the alert</x-bladewind::alert>
The first option requires you to have published the Bladewind components as described in the installation guide under "Publishing Components".
The second option uses the Bladewind components directly from your vendor directory.
Hope this helps.
I use the first option
I published, and after a new fresh install and try, It worked fine.
Awesome
I am trying to install BladewindUI in Laravel 10, and after follow the installation steps, I get the following error:
I also edited the file app/config/app.config and added the Mkocansey\Bladewind\BladewindServiceProvider::class in providers, but the error persists