Import ES6 does not work - client browser
Just as this issue pointed out, you get this specific module error https://github.com/andreyvit/json-diff/issues/46
Cannot assign to read only property 'name' of function 'function SequenceMatcher2(isjunk, a, b, autojunk) {
this.isjunk = isjunk;
if (a == null) {
This is just from the import example given in the readme and on npm
import { diffString, diff } from 'json-diff';
Which means it's not usable on a client app in the browser.
Is there a way to import this that works on browser. I'm using this with svelte/vite/javascript/chrome
same happens to me with vite
And same here with Vue 3 + Vite.
Try install @types/json-diff
this is a runtime error and installing the type declaration package is not useful.
And same here with Vite 3.x + React.
Up, any news ?
Up up ... the library seems to be outdated :(