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

Node must be provided when reporting error if location is not provided #687

Open
FDiskas opened this issue Oct 16, 2024 · 2 comments
Open

Comments

@FDiskas
Copy link

FDiskas commented Oct 16, 2024

If I run bun run lint - I get error

ESLint: 8.57.1
AssertionError [ERR_ASSERTION]: Node must be provided when reporting error if location is not provided

Here is the reproducible repository https://github.com/FDiskas/remix-dev

@Ys-OoO
Copy link

Ys-OoO commented Oct 30, 2024

I encountered the same problem, my configuration file is as follows:

import globals from "globals";
import pluginVue from "eslint-plugin-vue";
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default [
  {files: ["**/*.{js,mjs,cjs,vue}"]},
  {languageOptions: { globals: {...globals.browser, ...globals.node} }},
  ...pluginVue.configs["flat/essential"],
  eslintConfigPrettier,
  eslintPluginPrettierRecommended
];
    "eslint-plugin-prettier": "^5.2.1",
    "eslint": "^9.13.0",
    "eslint-config-prettier": "^9.1.0",

In addition, eslint's configuration files are generated by npm init @eslint/config

@3dos
Copy link

3dos commented Dec 2, 2024

I'm facing the same issue. It works perfectly on Node v20 but the error pops up while using Node v22

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

3 participants