Facing issues with loading file while running a prod build, the file is working fine with in local.
Unanswered
African Slender-snouted Crocodil… posted this in #help-forum
African Slender-snouted CrocodileOP
Can anyone help?
1 Reply
African Slender-snouted CrocodileOP
import { Backdrop, CircularProgress } from "@mui/material";
type Props = {};
export default function Loading({}: Props) {
return (
<Backdrop open={true}>
<CircularProgress color="secondary" />
</Backdrop>
);
}
This is my loading file named as loading.tsx on the root level of my directory. The loader is coming fine on npm run dev i.e. my local environment. But when I do npm run build and npm run start. The loader is not there. Can anyone help?
Facing this issue for a really long time. Attaching a SS of my directory.
type Props = {};
export default function Loading({}: Props) {
return (
<Backdrop open={true}>
<CircularProgress color="secondary" />
</Backdrop>
);
}
This is my loading file named as loading.tsx on the root level of my directory. The loader is coming fine on npm run dev i.e. my local environment. But when I do npm run build and npm run start. The loader is not there. Can anyone help?
Facing this issue for a really long time. Attaching a SS of my directory.