react-use-count-down icon indicating copy to clipboard operation
react-use-count-down copied to clipboard

DeprecationWarning: Invalid 'main' field

Open hesamkaveh opened this issue 2 years ago • 0 comments

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?

hesamkaveh avatar Oct 09 '23 09:10 hesamkaveh