eslint-config-xo-vue icon indicating copy to clipboard operation
eslint-config-xo-vue copied to clipboard

Invalid 'main' field in `package.json`

Open groenroos opened this issue 4 years ago • 1 comments

Running XO with this plugin in Node.js 16 gives this deprecation warning:

(node:7829) [DEP0128] DeprecationWarning: Invalid 'main' field in '/node_modules/eslint-config-xo-vue/package.json' of 'src/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)

The corresponding line should be removed from package.json;

https://github.com/ChocPanda/eslint-config-xo-vue/blob/4dfb471ae144876db70fd66103ea6acf317383d5/package.json#L7

groenroos avatar Oct 06 '21 02:10 groenroos

Could this be fixed easily by someone? I would like to continue using his package.

But it also seems that would not be enough?


> [email protected] format /Users/chrisspiegl/Sites/Projects/xxx/hosting/app
> xo

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Cannot read config file: /Users/chrisspiegl/Sites/Projects/xxxxx/hosting/app/node_modules/.pnpm/[email protected]_3b5a344e4d7d6beaf17afb480bfe6ecb/node_modules/eslint-config-xo-vue/index.js
Error: Package subpath './lib/rules/no-warning-comments' is not defined by "exports" in /Users/chrisspiegl/Sites/Projects/xxxxxx/hosting/app/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint/package.json

chrisspiegl avatar Feb 13 '22 11:02 chrisspiegl