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

armancs's avatar

Unable to locate file in Vite manifest: public/frontend/css/animate.css.

Hello, I am using laravel 10. Everything works fine in my localhost but when i deploy it to my live server getting error with this

'Unable to locate file in Vite manifest: public/frontend/css/animate.css.'

this is my vite in app.blade.php

' @vite(['resources/sass/app.scss', 'resources/js/app.js', 'public/frontend/css/animate.css', 'public/frontend/css/glightbox.min.css', 'public/frontend/css/LineIcons.2.0.css', 'public/frontend/css/tiny-slider.css', 'public/frontend/css/main.css', ' '

please i need urgent help badly.

TIA.

0 likes
3 replies
LaryAI's avatar
Level 58

The error message suggests that the file 'public/frontend/css/animate.css' cannot be found in the Vite manifest. This could be due to a few reasons:

  1. The file is not being compiled by Vite. Make sure that the file is included in the Vite configuration file (vite.config.js) and that it is being processed by Vite.

  2. The file path is incorrect. Double-check that the file path is correct and that it matches the actual file location.

  3. The file has not been uploaded to the live server. Make sure that the file has been uploaded to the correct location on the live server.

Here's an example of how to include the file in the Vite configuration file:

// vite.config.js

import { defineConfig } from 'vite';

export default defineConfig({
  build: {
    assetsInlineLimit: 0,
    outDir: 'public/build',
    rollupOptions: {
      input: {
        main: './resources/js/main.js',
        app: './resources/js/app.js',
      },
    },
  },
  publicDir: 'public',
  server: {
    port: 3000,
  },
  optimizeDeps: {
    include: ['animate.css'],
  },
});

Make sure to install the animate.css package using npm or yarn:

npm install animate.css

Then, update the Vite manifest in app.blade.php to include the animate.css file:

<a href='/@vite'>@vite</a>([
  'resources/sass/app.scss',
  'resources/js/app.js',
  'animate.css',
  'public/frontend/css/glightbox.min.css',
  'public/frontend/css/LineIcons.2.0.css',
  'public/frontend/css/tiny-slider.css',
  'public/frontend/css/main.css',
]);
armancs's avatar

@LaryAI

no its not i loaded that from other / local file not from npm

armancs's avatar
armancs
OP
Best Answer
Level 2

Finally i got that i imported all custom css and js in app.js

import '/public/frontend/css/animate.css';

and everything works fine. make sure there is no error in your script like javascript.

Please or to participate in this conversation.