Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
shrujalshah28 opened this issue May 8, 2024 · 0 comments
Closed

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

shrujalshah28 opened this issue May 8, 2024 · 0 comments
Labels

Comments

@shrujalshah28
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant