I am using a NextJS project together with MUI and I am trying to set a fontWeight property using my theme settings within the makeStyles function. The errors only occurs when building inside a docker container. Building locally works fine.
export const useTableStyles = makeStyles(theme =>
createStyles({
spannedTableCell: {
fontWeight: theme.typography.fontWeightBold
}
})
);
However when my docker container is building I got the following error:

I'm using node v16.13.0 both in the container and locally
Container (node:lts-alpine3.12):
Local:
This is the typography theme settigs:
typography: {
fontFamily: '"Roboto", serif',
fontSize: 16,
fontWeightLight: 300,
fontWeightRegular: 400,
fontWeightMedium: 500,
fontWeightBold: 700,
htmlFontSize: 16
},
MUI versions I use
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.60",
"@material-ui/pickers": "^3.3.10",
EDIT:
I changed the values hardcoded to bold, normal etc and now it works fine

