Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class "Js" not found (View:...vendor/ysfkaya/filament-phone-input/resources/views/phone-input.blade.php #27

Closed
mthorsdal opened this issue Nov 21, 2023 · 4 comments

Comments

@mthorsdal
Copy link

Hi Ysfkaya!

I seem to be getting an error after installing the package via composer ( v2.1.2) and simply applying PhoneInput::make('contact_number'), inside a form->schema. The whole page breaks with this error:

Class "Js" not found (View:...vendor/ysfkaya/filament-phone-input/resources/views/phone-input.blade.php

All caches are cleared

@ysfkaya
Copy link
Owner

ysfkaya commented Nov 21, 2023

Hello!

It is an alias provided by Laravel. I don't think there is a problem with this package.

Can you share your full log file.

@mthorsdal

This comment was marked as off-topic.

@ysfkaya
Copy link
Owner

ysfkaya commented Nov 22, 2023

It not seem any difference in log file.

Is there code block like following in your config/app.php ?

'aliases' => Facade::defaultAliases()->merge([
    // 'Example' => App\Facades\Example::class,
])->toArray(),

You might need to be add an Js alias in your config file. But it runs by default with Js alias.

Frankly, it's hard to see exactly what the problem is from here. By the way, you don't have anything extra to do, right?

@mthorsdal
Copy link
Author

Thanks for your help - exactly - adding the alias worked
'Js' => \Illuminate\Support\Js::class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants