Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PT-83's avatar
Level 7

404 CSS File Doesnt Exist

Hi all, I'm stumped. I created a droplet on digitalocean, and uploaded my git repo through to laravel forge.

On localhost things render perfectly. However when I visit my website https://famijam.com the CSS is not rendering.

running npm run production 'build successful'. Asset /css/app.css and /js/app.js is highlighted yellow and says [emitted] [big] /js/app

REPO - https://github.com/PT-83/FamiJam

Upon inspection in chrome, I can see a few errors also:

[Vue warn]: Cannot find element: #app.js1381

Uncaught TypeError: Cannot set property 'onclick' of null
    at Object../resources/js/app.js (app.js:12796)
    at __webpack_require__ (app.js:20)
    at Object.0 (app.js:12894)
    at __webpack_require__ (app.js:20)
    at app.js:84
    at app.js:87

Failed to load resource: the server responded with a status of 404 ()

Layout.app

<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'FamiJam') }}</title>

    <!-- Scripts -->
    <script src="{{ asset('js/app.js') }}" defer></script>
    <script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.js" defer></script>
   

    <!-- Fonts -->
    <link rel="dns-prefetch" href="//fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
    <link rel="/css/all.css">

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>

0 likes
6 replies
PT-83's avatar
Level 7

I uninstalled everything and reinstalled, still the same issue is occurring! Not sure why this is happening...

PT-83's avatar
Level 7

Update 2# moved over another CSS/app.css file from a different project with the same framework and dependencies. My thought was maybe code in this file was conflicting with something, but after deploying the issue still persisted. I have been scouring various forums but so far haven't found a solution.

Snapey's avatar

unix systems are case sensitive. /CSS folder is not the same as /css

PT-83's avatar
Level 7

Hi @snapey the CSS was capitalized, so I renamed to css and pushed to the server, but the issue is still happening.

Same errors as above and when I visit the directory famijam.com/css/app.css I get a 404.

I included the layout.app view above for more info.

Please or to participate in this conversation.