'npm run Build:dev error when doing Advance UI Customization

I wanted to customize the UI elements in the publisher portal and followed this guide

But I get the following error when running this in cmd; npm run build:dev

ERROR in ./node_modules/@material-ui/core/esm/styles/createPalette.js Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: .\Downloads\wso2am-4.1.0\repository\deployment\server\jaggeryapps\publisher\node_modules@material-ui\core\esm\styles\createPalette.js: Unexpected token, expected "," (174:319)

I’m using node version 16.14.0 and npm version 8.9.0.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source