You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ember-cli version 2.11.0, the below import works earlier, import findKey from 'lodash/object/findKey';
but after upgrading ember-cli to 2.13.3, it throws Error: Could not find module lodash/object/findKey`.
import { findKey } from 'lodash/object'; => this works import { findKey } from 'lodash'; => this works import findKey from 'lodash/object/findKey'; => this throws error.
The text was updated successfully, but these errors were encountered:
lodash/object/findKey isn't a file with a default export. lodash/objectis a file which exports the named function findKey This is why import { findKey } from 'lodash/object'; works as expected.
'Course I could be way wrong. I haven't ever used this. I just commented by looking at your comment.
@sukima thanks for your reply. import findKey from 'lodash/object/findKey' this worked in ember-cli version 2.11.0 but not in ember-cli to 2.13.3. do you find any reason for this behavior?.
In ember-cli version 2.11.0, the below import works earlier,
import findKey from 'lodash/object/findKey';
but after upgrading ember-cli to 2.13.3, it throws
Error: Could not find module
lodash/object/findKey`.import { findKey } from 'lodash/object';
=> this worksimport { findKey } from 'lodash';
=> this worksimport findKey from 'lodash/object/findKey';
=> this throws error.The text was updated successfully, but these errors were encountered: