Please add the below plugin in the array of plugins in babel.config file. ['@babel/plugin-proposal-private-property-in-object', { loose: true }] This will resolve the warning issue.