Code Monkey home page Code Monkey logo

Comments (15)

PH7-Jack avatar PH7-Jack commented on May 18, 2024 1

Try:
php artisan clear && php artisan view:clear && php artisan config:clear && php artisan cache:clear
Verify if you have an "x-icon" component in your project and remove it
Remove published wireui assets and config, and publish again if you needed

from wireui.

PH7-Jack avatar PH7-Jack commented on May 18, 2024 1

Thanks, enjoy wireui

from wireui.

PH7-Jack avatar PH7-Jack commented on May 18, 2024

Hello @carloslopes34

You was published the wireui config file?
Was changed the WIREUI_ICONS_STYLE?

from wireui.

carloslopes34 avatar carloslopes34 commented on May 18, 2024

Hello @PH7-Jack I published as the installation exemplifies, and I didn't change anything, I just inserted the select component of the example to start testing it but it returns this Icon error. I'm using laravel 8 + livewire in my project.

from wireui.

PH7-Jack avatar PH7-Jack commented on May 18, 2024

Can you check it?
your-project/config/wireui.php
image

or check this WIREUI_ICONS_STYLE in .env file

from wireui.

carloslopes34 avatar carloslopes34 commented on May 18, 2024

it's exactly the same, I don't add it to the .env.
I published these files, which path are they located in?
do i need to install the separate icons?

php artisan vendor:publish --tag='wireui.config'
php artisan vendor:publish --tag='wireui.resources'
php artisan vendor:publish --tag='wireui.lang'

from wireui.

PH7-Jack avatar PH7-Jack commented on May 18, 2024

You can create a reproducible repository with this error?
I try here, but nothing happen

When you publish files, will be found in:
your-project/config/wireui.php
your-project/resources/lang/vendor/wireui/
your-project/resources/views/vendor/wireui/

from wireui.

PH7-Jack avatar PH7-Jack commented on May 18, 2024

Don't need to install any icons

from wireui.

carloslopes34 avatar carloslopes34 commented on May 18, 2024

as it is an internal project of the company I cannot publish it, but it has something to do with the x-icon components,
doing some testing, i realize that only components that use icons cause this error.

from wireui.

PH7-Jack avatar PH7-Jack commented on May 18, 2024

You don't need to publish your project, you can create a new project and simulate this same error

from wireui.

carloslopes34 avatar carloslopes34 commented on May 18, 2024

realizei uma instalação de laravel 8 + jetstream e livewire , adcionei tailwindcss , para teste e ocorre mesmo erro... há algo que poderia causar algum conflito com o icones?

Essas são minhas dependencias de npm
"devDependencies": {
"@tailwindcss/forms": "^0.3.1",
"@tailwindcss/typography": "^0.4.0",
"alpinejs": "^2.7.3",
"axios": "^0.21",
"laravel-mix": "^6.0.25",
"lodash": "^4.17.19",
"postcss": "^8.3.5",
"resolve-url-loader": "^3.1.4",
"sass": "^1.35.1",
"sass-loader": "^12.1.0",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.4",
"webpack": "^5.41.1"
},
"dependencies": {
"postcss-import": "^14.0.1",
"sweetalert2": "^11.0.18"
}

e estas a de composer

"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.40",
"laravel/jetstream": "^2.3",
"laravel/sanctum": "^2.6",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.3",
"livewire/livewire": "^2.0",
"ph7jack/wireui": "^0.9.2",
"spatie/laravel-permission": "^4.2"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},

from wireui.

carloslopes34 avatar carloslopes34 commented on May 18, 2024

Testando uma instalação nova do laravel 8 + jetstream + livewire + tailwindcss o erro retornado é diferente.
Undefined variable: _instance (View: C:\xampp\htdocs\Projetos\Pessoais\teste\resources\views\vendor\wireui\components\select.blade.php)
há algo conflitando com esta instalação.

from wireui.

PH7-Jack avatar PH7-Jack commented on May 18, 2024

I create an example repository using jetstream and wireui
https://github.com/PH7-Jack/wireui-jetstream-starter-kit

The error Undefined variable: _instance is because you are imporrting select component outside a livewire component

from wireui.

carloslopes34 avatar carloslopes34 commented on May 18, 2024

No projeto teste funciona mas no projeto que estou usando e instalei esse pacote ele continua com erro de icone.
Alguma ideia ou sugestão que possa me dar?

Typed property WireUi\View\Components\Icon::$style must be string, null

from wireui.

carloslopes34 avatar carloslopes34 commented on May 18, 2024

@PH7-Jack funcionou perfeitamente !!!! Tinha algo a ver com o cache do laravel .
Incrivel pacote de componentes . Muito Obrigado pela Ajuda Amigo!!!!

from wireui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.