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

Terminal shows errors instead of warnnings #499

Open
CaptainJon opened this issue Mar 9, 2023 · 0 comments
Open

Terminal shows errors instead of warnnings #499

CaptainJon opened this issue Mar 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@CaptainJon
Copy link

What's happening
I got some errors in terminal and it stopped my project from keep running. But those errors should be warnnings instead as they are not critical at all. such as unused parameters
image

What should happen
they should be warnnings instead of erros so that my app will run normally

To reproduce
(list the steps to reproduce this behavior)

CRACO version
7.0.0

CRACO config
already disabled eslint.

const path = require("path")
const { whenProd } = require("@craco/craco")
const CracoAntDesignPlugin = require("craco-antd")
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer")
const WebpackBarPlugin = require("webpackbar")

import { CracoConfig } from "@craco/types"

const config: CracoConfig = {
  webpack: {
    alias: {
      "@": path.resolve(__dirname, "src/")
    },
    plugins: {
      ...whenProd(
        () => ({
          add: [
            new WebpackBarPlugin({
              name: "Bundle processing",
              color: "#1CE2D1"
            }),
            new BundleAnalyzerPlugin()
          ]
        }),
        []
      )
    },
    configure: {
      entry: "./src/index.tsx",
      resolve: { extensions: [".ts", ".tsx", ".js", ".jsx"] },
      performance: { hints: "warning" },
      devtool: process.env.NODE_ENV === "development" ? "source-map" : false
    }
  },
  plugins: [
    {
      plugin: CracoAntDesignPlugin
    }
  ],
  eslint: { enable: false },
  devServer: {
    port: 3080
  }
}

module.exports = config

export {}

package.json
already delete "eslintConfig" config

Additional information
I dunno what causes this

@CaptainJon CaptainJon added the bug Something isn't working label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant