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

DeprecationWarning: Invalid 'main' field #49

Open
hesamkaveh opened this issue Oct 9, 2023 · 0 comments
Open

DeprecationWarning: Invalid 'main' field #49

hesamkaveh opened this issue Oct 9, 2023 · 0 comments

Comments

@hesamkaveh
Copy link

Hello,
I'm using nextjs@^13.5.4 and react-countdown-hook@^1.1.3
Some warnings printed in terminal when i try to build my app:

  Collecting page data  ..(node:121361) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121371) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
   Collecting page data  ...(node:121568) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121538) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121411) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121588) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121578) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121421) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121481) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121401) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121461) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121508) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
 ✓ Collecting page data    
   Generating static pages (0/56)  [    ](node:121451) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
   Generating static pages (2/56)  [=   ] 
(node:121381) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121431) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121492) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:121471) [DEP0128] DeprecationWarning: Invalid 'main' field in '/SOME_DIRECTORIES/frontend/node_modules/react-countdown-hook/package.json' of 'dist/index.js'. Please either fix that or report it to the module author

Can you help to resolve warnings?

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

No branches or pull requests

1 participant