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

Uncaught TypeError: (0 , _deepObjectDiff2.default) is not a function #4

Closed
lardois opened this issue Feb 3, 2017 · 1 comment
Closed

Comments

@lardois
Copy link

lardois commented Feb 3, 2017

Updated to 1.0.0 from previous version and get following on browser:

Uncaught TypeError: (0 , _deepObjectDiff2.default) is not a function at detectChangedData (http://localhost:8080/files/js/bundle.js:97295:44)

Code goes simply like this:

import diff from 'deep-object-diff';

const detectChangedData = ({ initialValues, currentValues }) => {
  const base = diff(initialValues, currentValues);
  return base;
};

React/redux project packed with Webpack 1.14.0, running node 7.4.0 and npm 4.0.5..

@lardois lardois closed this as completed Feb 3, 2017
@lardois
Copy link
Author

lardois commented Feb 3, 2017

Sorry just noticed that it has changed to import { diff } from 'deep-object-diff';

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

1 participant