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

3.1.0 - Uncaught TypeError: s is not a function #201

Open
jonespi opened this issue Sep 23, 2020 · 2 comments
Open

3.1.0 - Uncaught TypeError: s is not a function #201

jonespi opened this issue Sep 23, 2020 · 2 comments

Comments

@jonespi
Copy link

jonespi commented Sep 23, 2020

Seems like the new version is causing issues with some builds. I was able to workaround it by reverting to the last stable build 2.2.0, but seems to be a bigger issue.

https://stackoverflow.com/questions/63990752/vuex-persist-throws-uncaught-typeerror-s-is-not-a-function

@I-Al-Istannen
Copy link

I have the same problem (though with my own Map type). Maybe the merge function from deepmerge ignores the prototype and turns everything into a plain old Javascript object?

@EtienneBruines
Copy link

EtienneBruines commented Dec 17, 2020

turns everything into a plain old Javascript object?

This is what the Javascript-Debuggger is telling me, that it's an Object (without functions), and not something of let's say Mutex or any other custom class I have.

From the deepmerge docs:

By default, deepmerge clones every property from almost every kind of object.

There is something in progress that will allow it to retain the prototype/class, but I don't know enough about the matter to know if it will be usable. TehShrike/deepmerge#208

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

3 participants