enso-ui / ui

Laravel Enso UI
MIT License
9 stars 10 forks source link

Error after call of "yarn serve" #74

Closed mauthi closed 3 years ago

mauthi commented 3 years ago

This is a bug.

Prerequisites

Description

Today I called yarn && yarn upgrade && yarn. Afterwards I tried to serve the application with yarn serve and got the following error:

Module build failed (from ./node_modules/eslint-loader/index.js):
Error: .eslintrc.js » eslint-config-airbnb-base » /Users/mauthi/coding/Enso/client/node_modules/eslint-config-airbnb-base/rules/imports.js:
    Configuration for rule "import/no-cycle" is invalid:
    Value "∞" should be integer.

    at validateRuleOptions (/Users/mauthi/coding/Enso/client/node_modules/eslint/lib/shared/config-validator.js:138:19)
    at /Users/mauthi/coding/Enso/client/node_modules/eslint/lib/shared/config-validator.js:193:9
    at Array.forEach (<anonymous>)
    at validateRules (/Users/mauthi/coding/Enso/client/node_modules/eslint/lib/shared/config-validator.js:190:30)
    at validateConfigArray (/Users/mauthi/coding/Enso/client/node_modules/eslint/lib/shared/config-validator.js:337:9)
    at CascadingConfigArrayFactory._finalizeConfigArray (/Users/mauthi/coding/Enso/client/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:417:13)
    at CascadingConfigArrayFactory.getConfigArrayForFile (/Users/mauthi/coding/Enso/client/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:271:21)
    at CLIEngine.isPathIgnored (/Users/mauthi/coding/Enso/client/node_modules/eslint/lib/cli-engine/cli-engine.js:951:18)
    at CLIEngine.executeOnText (/Users/mauthi/coding/Enso/client/node_modules/eslint/lib/cli-engine/cli-engine.js:868:38)
    at lint (/Users/mauthi/coding/Enso/client/node_modules/eslint-loader/index.js:278:17)
    at transform (/Users/mauthi/coding/Enso/client/node_modules/eslint-loader/index.js:252:18)
    at /Users/mauthi/coding/Enso/client/node_modules/loader-fs-cache/index.js:127:18
    at ReadFileContext.callback (/Users/mauthi/coding/Enso/client/node_modules/loader-fs-cache/index.js:31:14)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:271:13)

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

image

I found the following issue which describes the problem: https://github.com/airbnb/javascript/issues/2331

But after changing the import in package.json to "eslint-plugin-import": "^2.20.1", I got other errors that modules are not imported (I can add them here if needed).

Steps to Reproduce

  1. call yarn && yarn upgrade && yarn
  2. call yarn serve

Expected behavior

Application served

Actual behavior

Error - see description above

aocneanu commented 3 years ago

did you try to remove node_modules and install again?

mauthi commented 3 years ago

ok, now it works. Sorry.