Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unknown property key found react/no-unknown-propert

When I am uploading my nextjs app to vercel I am getting this error please help me solve it

enter image description here


1 Answers

This is an ESLint error, you can disable this specific check.

Checkout my eslint config, I disabled this rule.

//.eslintrc.js
module.exports = {
  env: {
    node: true,
    browser: true,
    es2021: true,
  },
  extends: [
    "eslint:recommended",
    "plugin:react/recommended",
    "plugin:@next/next/recommended",
  ],
  parserOptions: {
    ecmaFeatures: {
      jsx: true,
    },
    ecmaVersion: 12,
    sourceType: "module",
  },
  plugins: ["react"],
  rules: {
    "react/no-unknown-property": ["error", { ignore: ["jsx"] }],
  },
  globals: {
    React: "writable",
  },
  settings: {
    react: {
      version: "detect",
    },
  },
};
like image 112
ciruz Avatar answered Aug 31 '26 19:08

ciruz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!