Getting an error when importing the module into a React script. Same works fine in a Node app or plain HTML. Does anyone have a fix?  