Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import ES6 does not work - client browser #82

Open
half-metal opened this issue Apr 13, 2022 · 7 comments
Open

Import ES6 does not work - client browser #82

half-metal opened this issue Apr 13, 2022 · 7 comments

Comments

@half-metal
Copy link

Just as this issue pointed out, you get this specific module error
#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

@Gabb1995
Copy link

same happens to me with vite

@chamberlainpi
Copy link

And same here with Vue 3 + Vite.

@minseolee
Copy link

Try install @types/json-diff

@anilpixel
Copy link

this is a runtime error and installing the type declaration package is not useful.

@anilpixel
Copy link

And same here with Vite 3.x + React.

@AnthonyRuelle
Copy link

Up, any news ?

@AnthonyRuelle
Copy link

Up up ...
the library seems to be outdated :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants