mattphillips / deep-object-diff

Deep diffs two objects, including nested structures of arrays and objects, and returns the difference. ❄️
https://www.npmjs.com/package/deep-object-diff
MIT License
1.05k stars 89 forks source link

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

Closed lardois closed 7 years ago

lardois commented 7 years ago

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 commented 7 years ago

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