Styles imported from node_modules do not work on Vercel (but work on local environment)

204 Views Asked by At

I am importing Uppy styles in my component. In the local environment styles are successfully loaded from Uppy module. But when app is deployed to Vercel then the CSS files are not loaded.

What am I missing?

import Uppy from "@uppy/core";
import { Dashboard } from "@uppy/react";
import "@uppy/core/dist/style.css";
import "@uppy/dashboard/dist/style.css";

export default function UploadPage() {
  const uppy = new Uppy();

  return (
    <Dashboard uppy={uppy} />
  )
}
0

There are 0 best solutions below