-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TypeError: Path must be a string. Received undefined on v1.6.1 on node 6 #301
Comments
Ah, right. It's weird none of the tests are failing on that in CI. Also Can you post your eslintrc Also hopefully #296 fixes this anyway. |
I'll try to find some time to find the line that is causing this. In the meantime here's the eslintrc: {
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:ava/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"ecmaVersion": 6
},
"rules": {
"comma-dangle": 0,
"no-unused-vars": 1,
"no-console": 0,
"jsx-quotes": [1, "prefer-single"],
"react/display-name": [0],
"react/prop-types": [0],
"import/no-extraneous-dependencies": 2,
"import/extensions": 1,
"import/order": 1,
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"import",
"react",
"ava"
],
"settings": {
"import/ignore": [
"node_modules",
\.css$
],
import/resolver: webpack
}
} |
FYI: In my case it's |
Just published v1.7.0, should resolve this. Let me know if it doesn't and I can reopen. 😄 |
I get this stacktrace on running
eslint
on node 6I guess on this line https://github.com/benmosher/eslint-plugin-import/blob/master/src/rules/extensions.js#L27
resolve
is returningundefined
because it doesn't find the module and as suchpath.extname
throws on the next lineThe text was updated successfully, but these errors were encountered: