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

[Bug]: @push('scripts') in a component show Problem "View [scripts] not found. Laravel Extension(view)" #130

Open
d2inco opened this issue Dec 24, 2024 · 1 comment
Assignees
Labels

Comments

@d2inco
Copy link

d2inco commented Dec 24, 2024

Extension Version

0.1.14

PHP Binary

Local PHP

Operating System

Linux

What happened?

Looking at a Component file, Livewire component more specifically, it triggers a "View not found" in the Problems area. There is a corresponding @stack('scripts') in the parent component.

Error seen:

index.blade.php resources/views/livewire/asubdirectory
(warning triangle) View [scripts] not found.  Laravel Extension(view) [Ln 134, Col 12]

So, 2 issues: 1) it's looking for a corresponding View instead of a @stack 2) it's not really missing. At a minimum, it shouldn't be labeled as View-related... right?

Mimimal Code Sample

@push('scripts')
        <script type='module'>
....
        </script>
    @endpush
@martinbean
Copy link

Related to #3

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

No branches or pull requests

3 participants