react-diff-viewer icon indicating copy to clipboard operation
react-diff-viewer copied to clipboard

Throwing classnames_1.default is not a function

Open vanyasehgal opened this issue 3 years ago • 1 comments

I am trying to consume the library in my app. It's written in TS, and being thrown the error classnames_1.default is not a function coming from https://github.com/praneshr/react-diff-viewer/blob/6eda0f7cfcc3333cb8edb5f78e385253a970a37a/src/index.tsx#L259. I am doing nothing fancy, just tried with the example to move forward, Can someone plz help me out?

vanyasehgal avatar Jun 30 '21 23:06 vanyasehgal

you just edit the library wherever classnames_1.defalut defined change it classnames_1 it will work, it was not identifying default function. it was breaking due to latest react-bootstrap version

DJDhanuS avatar Sep 02 '22 07:09 DJDhanuS