style not detected

i have just deployed the project on digital ocean apps, and i can login ,but i see only raw html without the styles.
19 Replies
TranceCode
TranceCode2y ago
i have he same problem now, i add the project using createapp and using githubaction, the index page of laravel is working but the style is not detected when i go to mysite.com/tenancy/login
awcodes
awcodes2y ago
Are you using a custom theme? If so, you need to build your assets. If not, then you nginx config is not configured correctly.
TranceCode
TranceCode2y ago
not in my case... i only add more colors in one of my panels ->colors([ 'danger' => Color::Rose, 'gray' => Color::Gray, 'info' => Color::Blue, 'primary' => Color::Indigo, 'success' => Color::Emerald, 'warning' => Color::Orange, ])
TranceCode
TranceCode2y ago
i have any problems here
No description
TranceCode
TranceCode2y ago
i execute composer install in the console, i need execute npm install too?
awcodes
awcodes2y ago
Nope. This is a different error. Are you including Alpine somewhere in a js file? That’s typically when I’ve seen this error.
TranceCode
TranceCode2y ago
no bro... this is my package.json { "private": true, "type": "module", "scripts": { "dev": "vite", "build": "vite build" }, "devDependencies": { "@tailwindcss/forms": "^0.5.6", "@tailwindcss/typography": "^0.5.10", "autoprefixer": "^10.4.16", "axios": "^1.1.2", "laravel-vite-plugin": "^0.8.0", "postcss": "^8.4.31", "tailwindcss": "^3.3.3", "vite": "^4.0.0" } } and this is my composer.json "require": { "php": "^8.1", "filament/filament": "3.0-stable", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.10", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", "maatwebsite/excel": "^3.1", "psr/simple-cache": "1.0", "transbank/transbank-sdk": "~2.0" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.9", "fakerphp/faker": "^1.9.1", "laravel/pint": "^1.0", "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^7.0", "phpunit/phpunit": "^10.1", "spatie/laravel-ignition": "^2.0" },
awcodes
awcodes2y ago
Do you have an app.js?
TranceCode
TranceCode2y ago
here? no
No description
awcodes
awcodes2y ago
Ok. That’s doesn’t help. No worries though.
TranceCode
TranceCode2y ago
this is the only app.js bro
No description
awcodes
awcodes2y ago
Typically that error happens with livewire v3 because a script is still trying to include alpine in a JavaScript file. With livewire v3 alpine was merged into livewire so a script trying to load alpine outside of livewire causes these kind of errors.
awcodes
awcodes2y ago
It may not be your problem. But it’s where I would start to debug. For reference: https://livewire.laravel.com/docs/upgrading#alpinejs
Laravel
Upgrade Guide | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
TranceCode
TranceCode2y ago
aah ok, understand i will check the link @oussamazar do you fix this problem bro? @awcodes i have more information. Mixed Content: The page at 'https://mywebsite-amuyq.ondigitalocean.app/companies/login' was loaded over HTTPS, but requested an insecure stylesheet 'http://mywebsite-amuyq.ondigitalocean.app/css/filament/forms/forms.css?v=3.0.0.0'. This request has been blocked; the content must be served over HTTPS.
awcodes
awcodes2y ago
Make sure your APP_URL in your .env is set to the https version of your domain.
Solution
TranceCode
TranceCode2y ago
Ok ok bro, i will try this... thank you Thankl you bro, this fix the problem and work perfect for me! thank you so much
TranceCode
TranceCode2y ago
We can wait for @oussamazar if this work for him too, he can mark like a solution for the question
oussamazar
oussamazarOP2y ago
this worked for me Thanks bro

Did you find this page helpful?