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

Invalid 'main' field in package.json #113

Open
groenroos opened this issue Oct 6, 2021 · 1 comment
Open

Invalid 'main' field in package.json #113

groenroos opened this issue Oct 6, 2021 · 1 comment

Comments

@groenroos
Copy link

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;

"main": "src/index.js",

@chrisspiegl
Copy link

chrisspiegl commented Feb 13, 2022

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

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

2 participants