Skip to content

Class "Asset" not found #195

@dragonfire1119

Description

@dragonfire1119

Pulse Version

v1.0.0-beta5

Laravel Version

10.35.0

PHP Version

8.1.24

Livewire Version

3.0.2

Database Driver & Version

No response

Description

Servers Card

When I have the servers card, it gives me:

Class "Asset" not found

The issue seems to be with:

@js

If I remove all or @js, it will render.

vendor/laravel/pulse/resources/views/livewire/servers.blade.php:70

labels: @js($server->cpu->keys()),

Queues Card

This happens on the queues card too:

syntax error, unexpected identifier "queued", expecting ")"

If I remove all @js calls, it renders.

vendor/laravel/pulse/resources/views/livewire/queues.blade.php:81

labels: @js($readings->first()->keys()),

Steps To Reproduce

I just go to the Pulse dashboard, and it pops up an error. When using servers or queue cards.

Solution

Changed:

@js(<code>)

to:

{{ <code> }}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions