Closed slubowsky closed 4 years ago
In my case it's
Unable to resolve "./empty" from "node_modules/jsondiffpatch/dist/jsondiffpatch.umd.js"
Failed building JavaScript bundle
ouch, will take a look later today, thanks!
@slubowsky I published 0.4.1 which I think should fix the typescript error, can you verify?
@brasilikum I couldn't reproduce that error, is that new to 0.4.0? I'll need more info on your environment to reproduce, is that on a browser? as umd version should be only for browsers, and cjs or esm for node depending on your build setup.
@benjamine Im not seeing a version 0.4.1...
>npm i
npm ERR! code ETARGET
npm ERR! notarget No matching version found for jsondiffpatch@0.4.1.
🤦♂ forgot to npm publish, should be there now.
Yes. version 0.4.1 works. Thanks!
@brasilikum I couldn't reproduce that error, is that new to 0.4.0? I'll need more info on your environment to reproduce, is that on a browser? as umd version should be only for browsers, and cjs or esm for node depending on your build setup.
Yes, that error was new in 0.4.0 but it's gone in 0.4.1, so I guess that was what my webpack turned the error into. I am using it with react native. Expo does not print any color so I use your package to print diffs in my react state and messages.
Thank you very much for this module and your quick response and fix!
@brasilikum nice! (would love to see a screenshot of that, just curious) thanks both!
Sure, here you go:
The logger is a middleware with some 10 lines of code. It's really only using the diff function on the state and the console formatter
After updating I get the following:
ERROR in node_modules/jsondiffpatch/dist/index.d.ts:192:9 - error TS2304: Cannot find name 'HTMLFormatter'.