nx icon indicating copy to clipboard operation
nx copied to clipboard

DeprecationWarning: Invalid 'main' field

Open SamuelT-Beslogic opened this issue 2 years ago • 0 comments

Current Behavior

Whenever I run eslint, I get this DeprecationWarning spam: (node:6772) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\SamuelTherrien\Projects\Beslogic.Activities.FrontEnd\node_modules\@nrwl\eslint-plugin-nx\package.json' of './src/index.js'. Please either fix that or report it to the module author image

Expected Behavior

No warning

GitHub Repo

No response

Steps to Reproduce

  1. Create an NX project so that the nx plugin and rules are added to .eslintrc.json
  2. Run eslint ./

Nx Report

>  NX   Report complete - copy this into the issue template

   Node   : 18.14.0
   OS     : win32 x64
   npm    : 9.4.2
   Hasher : Native
   
   nx                 : 16.3.2
   @nx/js             : 16.3.2
   @nx/jest           : 16.3.2
   @nx/linter         : 16.4.0
   @nx/workspace      : 16.4.0
   @nx/angular        : 16.4.0
   @nrwl/angular      : 16.3.2
   @nx/cypress        : 16.3.2
   @nx/devkit         : 16.4.0
   @nx/eslint-plugin  : 16.3.2
   @nrwl/tao          : 16.3.2
   @nx/webpack        : 16.4.0
   typescript         : 4.9.5
   ---------------------------------------
   Community plugins:
   @ionic/angular           : 7.1.1
   @ngneat/transloco        : 4.3.0
   @nxext/capacitor         : 16.3.0
   @nxext/ionic-angular     : 16.2.0
   @testing-library/angular : 11.0.4
   ---------------------------------------
   The following packages should match the installed version of nx
     - @nx/[email protected]
     - @nrwl/[email protected]
     - @nx/[email protected]
     - @nrwl/[email protected]
     - @nx/[email protected]
     - @nx/[email protected]
     - @nrwl/[email protected]
     - @nx/[email protected]
     - @nrwl/[email protected]

   To fix this, run `nx migrate [email protected]`

Failure Logs

(node:6772) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\SamuelTherrien\Projects\Beslogic.Activities.FrontEnd\node_modules\@nrwl\eslint-plugin-nx\package.json' of './src/index.js'. Please either fix that or report it to the module author

Operating System

  • [ ] macOS
  • [ ] Linux
  • [X] Windows
  • [ ] Other (Please specify)

Additional Information

No response

SamuelT-Beslogic avatar Jul 04 '23 01:07 SamuelT-Beslogic