Skip to content

Error when linting with --cache key #666

@downace

Description

@downace

Tell us about your environment

  • ESLint version: 9.38.0
  • eslint-plugin-vue version: 10.5.1
  • eslint-plugin-vue-i18n version: 4.1.0
  • Node version: 20.19.5

Please show your full configuration:

import js from '@eslint/js';
import { defineConfigWithVueTs } from '@vue/eslint-config-typescript';
import vueI18n from '@intlify/eslint-plugin-vue-i18n';

export default defineConfigWithVueTs([
  js.configs.recommended,
  ...vueI18n.configs.recommended, // Works ok without this line
  {
    files: ['**/*.vue'],
    languageOptions: {
      ecmaVersion: 'latest',
      sourceType: 'module',
    },

    rules: {},
  },
]);

What did you do?

Run eslint --cache

What did you expect to happen?

ESLint should lint my project files

What actually happened?

ESLint fails with error:

Oops! Something went wrong! :(

ESLint: 9.38.0

The requested operation requires ESLint to serialize configuration data,
but the configuration key "parser.parseForESLint" contains a function value,
which cannot be serialized.

This typically happens when you're using a custom parser that does not
provide a "meta" property, which is how ESLint determines the serialized
representation. Please open an issue with the maintainer of the custom parser
and share this link:

https://eslint.org/docs/latest/extend/custom-parsers#meta-data-in-custom-parsers

If you still have problems, please stop by https://eslint.org/chat/help to chat
with the team.

It works without errors if I remove vueI18n.configs.recommended config, or run eslint without --cache key.

Similar issue with next.js: eslint/eslint#19322

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions