eslint-plugin-flowtype-errors icon indicating copy to clipboard operation
eslint-plugin-flowtype-errors copied to clipboard

Getting errors on TravisCI

Open vincentaudebert opened this issue 6 years ago • 6 comments

Hi,

I'm getting the following errors on my TravisCI but it doesn't happen on my local machine. (Note this could be related to https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/41)

screen shot 2018-06-04 at 12 20 13 am

Here is my eslint config:

{
  "parser": "babel-eslint",
  "extends": [
    "airbnb",
    "plugin:react/recommended",
    "plugin:flowtype/recommended",
    "prettier",
    "prettier/react",
    "prettier/flowtype"
  ],
  "plugins": ["react", "prettier", "flowtype", "flowtype-errors"],
  "rules": {
    "jsx-a11y/anchor-is-valid": [
      "error",
      {
        "components": ["Link"],
        "specialLink": ["to"],
        "aspects": ["noHref", "invalidHref", "preferButton"]
      }
    ],
    "prettier/prettier": [
      "error",
      {
        "singleQuote": true,
        "trailingComma": "es5",
        "tabWidth": 2
      }
    ],
    "flowtype-errors/show-errors": 2,
    "no-warning-comments": [
      1,
      { "terms": ["todo", "fixme", "xxx"], "location": "start" }
    ],
    "react/sort-comp": [0],
    "react/no-unescaped-entities": [0],
    "react/jsx-boolean-value": [0],
    "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
    "react/default-props-match-prop-types": "off",
    "jsx-a11y/no-static-element-interactions": [0]
  },
  "env": {
    "es6": true,
    "browser": true
  }
}

And my flow config:

[ignore]
.*/build/.*
.*\.json

[include]

[libs]

[lints]

[options]

Any idea what could be wrong?

Thank you.

vincentaudebert avatar Jun 03 '18 22:06 vincentaudebert

Can you try to run flow directly in CI? Without using eslint-plugin-flowtype-errors? Thanks

jdmota avatar Jun 04 '18 13:06 jdmota

@jdmota my flow task works fine yes. Does your comment mean I can't use eslint-plugin-flowtype-errors with Travis?

vincentaudebert avatar Jun 04 '18 15:06 vincentaudebert

I moved to CircleCI and the error is gone. I'll stay there and ditch TravisCI. Thanks. I close this issue but feel free to comment if you have a fix.

vincentaudebert avatar Jun 04 '18 15:06 vincentaudebert

image

That is weird. Not sure why we output "Cannot resolve module" but flow passes with no errors...

I think it is worth to investigate.

jdmota avatar Jun 04 '18 22:06 jdmota

You might have found the details already but just in case My repo is github.com/vincentaudebert/vatweb And the travis config I was using is the following: https://github.com/vincentaudebert/vatweb/blob/5c67f7bacd320214f30b3f616a2937738fdf5a0b/.travis.yml

vincentaudebert avatar Jun 05 '18 09:06 vincentaudebert

I'm having a similar problem at with https://github.com/BrunoBernardino/snailjs now. I've tried forcing the relative path and the yarn version. Locally it's all good.

BrunoBernardino avatar Feb 04 '19 22:02 BrunoBernardino