[@formatjs/intl-durationformat] package.json wrong main entry
shrujalshah28 opened this issue · comments
Shrujal Shah commented
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