this is most likely to be a problem in my code. this time I used named import whereas I as trying to do default export. and rce also made export class something which i forgot to remove. so there was no problem with the react-script