formatjs / formatjs

The monorepo home to all of the FormatJS related libraries, most notably react-intl.

Home Page:https://formatjs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[@formatjs/intl-durationformat] package.json wrong main entry

shrujalshah28 opened this issue · comments

Which package?

intl-durationformat

Describe the bug

Due to a wrong entry in package.json's main, I get the following warning

(node:44888) [DEP0128] DeprecationWarning: Invalid 'main' field in '...\node_modules\@formatjs\intl-durationformat\package.json' of 'index.umd.js'. Please either fix that or report it to the module author

To Reproduce

import { DurationFormat } from '@formatjs/intl-durationformat';

I installed package and import this in my typescript file.

Expected behavior

No warning

Desktop (please complete the following information):

  • OS: Windows
  • Browser: N/A (Using Node.js)
  • Version: 22

Additional context

#4354