Coder Social home page Coder Social logo

Comments (10)

PerryvanderMeer avatar PerryvanderMeer commented on August 17, 2024 2

@ysrdevs any chance you use Livewire in your project and have inject_assets disabled? Looks like Livewire isn't loaded at all (see #87 and #88).

from pulse.

gofish543 avatar gofish543 commented on August 17, 2024 1

Similar issue, needed to add...

@vite('resources/js/app.js')
@livewireScriptConfig(['nonce' => Vite::cspNonce()])

@livewireStyles(['nonce' => Vite::cspNonce()])

to the dashboard.blade.php file

I have inject_assets disabled and manually start Alpine / Livewire in my main application with app.js

import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm'
import carbon from './plugins/carbon'
import mapbox from './plugins/mapbox'
import toast from './plugins/toast'
import tooltip from './plugins/tooltip'

import.meta.glob([
    '../images/**',
])

Alpine.plugin(carbon)
Alpine.plugin(mapbox)
Alpine.plugin(toast)
Alpine.plugin(tooltip)

Livewire.start()

from pulse.

ahinkle avatar ahinkle commented on August 17, 2024

What exceptions / console log errors are you getting?

from pulse.

ysrdevs avatar ysrdevs commented on August 17, 2024

What exceptions / console log errors are you getting?

No error log in console, If I test on Forge I don't see anything in the logs either.

Screenshot 2023-12-01 at 9 05 36 PM

from pulse.

attaryz avatar attaryz commented on August 17, 2024

i also received this error.

when using telescope package logs i got this error:
Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header()

from pulse.

ahinkle avatar ahinkle commented on August 17, 2024

Interesting. What's your output on php artisan about?

Is this a duplicate of #85?

from pulse.

attaryz avatar attaryz commented on August 17, 2024

i got it to work by disabling the CORS middleware.

from pulse.

github-actions avatar github-actions commented on August 17, 2024

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

from pulse.

ysrdevs avatar ysrdevs commented on August 17, 2024

Interesting. What's your output on php artisan about?

Is this a duplicate of #85?

This is what I get

php artisan about

Environment ..........................................................................................................
Application Name ........................................................................................... website
Laravel Version .............................................................................................. 10.34.2
PHP Version .................................................................................................... 8.3.0
Composer Version ............................................................................................... 2.5.5
Environment .................................................................................................... local
Debug Mode ....................................................................................................... OFF
URL .................................................................................................... websitename.com
Maintenance Mode ................................................................................................. OFF

Cache ................................................................................................................
Config .................................................................................................... NOT CACHED
Events .................................................................................................... NOT CACHED
Routes .................................................................................................... NOT CACHED
Views ......................................................................................................... CACHED

Drivers ..............................................................................................................
Broadcasting ..................................................................................................... log
Cache ........................................................................................................... file
Database ....................................................................................................... mysql
Logs .................................................................................... stack / single, daily, flare
Mail ............................................................................................................ smtp
Octane .................................................................................................... roadrunner
Queue ........................................................................................................... sync
Session ......................................................................................................... file

Livewire .............................................................................................................
Livewire ...................................................................................................... v3.2.2

from pulse.

ysrdevs avatar ysrdevs commented on August 17, 2024

@ysrdevs any chance you use Livewire in your project and have inject_assets disabled? Looks like Livewire isn't loaded at all (see #87 and #88).

This solves it.

Adding @livewireScripts just before the closing BODY tag fixes it. The issue is with livewire not injecting assets to the pulse dashboard. The file sits at vendor/laravel/pulse/resources/views/components/pulse.blade.php

from pulse.

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.