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

Error after call of "yarn serve" #74

Closed
4 tasks done
mauthi opened this issue Nov 13, 2020 · 2 comments
Closed
4 tasks done

Error after call of "yarn serve" #74

mauthi opened this issue Nov 13, 2020 · 2 comments

Comments

@mauthi
Copy link

mauthi commented Nov 13, 2020

This is a bug.

Prerequisites

  • Are you running the latest version?
  • Are you reporting to the correct repository?
    (enso is made of many specialized packages: https://github.com/laravel-enso)
  • Did you check the documentation?
  • Did you perform a cursory search?

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:
airbnb/javascript#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
Copy link
Contributor

did you try to remove node_modules and install again?

@mauthi
Copy link
Author

mauthi commented Nov 13, 2020

ok, now it works. Sorry.

@mauthi mauthi closed this as completed Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants