Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
FDiskas opened this issue Oct 16, 2024 · 4 comments · Fixed by #700
Closed

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

FDiskas opened this issue Oct 16, 2024 · 4 comments · Fixed by #700

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

@Mori-Young
Copy link

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

@lunatupini
Copy link

Same issue. any workaround?

@JounQin
Copy link
Member

JounQin commented Jan 15, 2025

Sorry for the delay, v5.2.2 has just been released.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants