darrenscerri/duplicate-package-checker-webpack-plugin

Something wrong with date-fns

nkt opened this issue · 4 comments

nkt commented

Hello, thanks for this project!
I've got following warning on my projects:

WARNING in duplicate-package-checker:
  <undefined>
    undefined ./~/date-fns/parse
    undefined ./~/date-fns/compare_asc
    undefined ./~/date-fns/compare_desc
    undefined ./~/date-fns/difference_in_calendar_months
    undefined ./~/date-fns/difference_in_milliseconds
    undefined ./~/date-fns/difference_in_months
    undefined ./~/date-fns/difference_in_seconds
    undefined ./~/date-fns/distance_in_words
    undefined ./~/date-fns/distance_in_words_to_now
    undefined ./~/date-fns/is_date
    undefined ./~/date-fns/locale/_lib
    undefined ./~/date-fns/locale/en

Can you provide more information on how date-fns is being required?

Is it possible that what's requiring date-fns has a package.json without the name property?

Update: v1.2.1 should handle such cases gracefully

Issue fixed with v1.2.2. Issue was due to non-root package.json files in date-fns.

date-fns/date-fns#264 (comment)
junosuarez/find-root#2

nkt commented

Thanks!