sass loader error while building the project

I get he below error while building my project

 Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
 SassError: 2 arguments required, but only 1 was passed.
    ╷
         width: rem(300);
                ^^^^^^^^

Below is my package.json

{
  "name": "test",
  "version": "3.0.0",
  "private": true,
  "scripts": {
   
  },
  "devDependencies": {
    "mini-css-extract-plugin": "^2.4.2",
    "node-sass": "^6.0.1",
    "postcss": "^8.3.9",
    "postcss-loader": "^6.2.0",
    "postcss-preset-env": "^6.7.0",
    "sass": "^1.3",
    "sass-loader": "^12.1.0"
  },
  "dependencies": {
   
    "grunt-sass": "^3.1.0"
    
  }

}

I am sure rem(300) is a valid syntax. Can you please tell me why the build is throwing this error