-
Notifications
You must be signed in to change notification settings - Fork 141
v8.1.0: "Couldn't find preset "node5" relative to directory" #796
Comments
Installing |
Looking further into this, I suspect this comes from the By changing to a |
This sounds like a bug in Can you provide a minimal repro case? |
I agree, @Arcanemagus - it feels like it should be a bug in I'll try to reproduce a minimal case. |
I cannot create a succinct reproduction for this issue, that doesn't require a range of ESLint plugins (and that doesn't return a different error, handled gracefully through Happy to close this as a compatibility issue, when mixing a specific set of plugins with an edge usage case. |
Hey, I also ran into this issue because I'm sure I have the same weird combination of eslint plugins installed. Is the current recommendation to downgrade |
I was able to solve this in my project by pulling my For example: webpack-resolve-configuration.js
Then I just import that file into my main webpack configuration file to use for the
It's not a perfect solution but it's simple, it works, and you don't have to duplicate code or downgrade your whole webpack config to es5. |
Can either of you determine a sharable reproduction case? Has anyone filed this bug with |
It took a bit but I think I have it pretty well narrowed down. Here's a reproduction—in v8.0.0 it lints fine, but in v8.1.0 it silently fails with the error. To fix it in v8.1 just change the config to reference babel.config.js, delete the import in that file, and change the export to module.exports format. The problem seems to be that the webpack config, when referenced through the resolver, doesn't get transpiled. I haven't been able to investigate exactly why, but I hope this reproduction helps! (edit) One more note: if you open the broken repro, change the path to |
- Added git attribute to export-ignore build-time babelrc config More info: atom/apm#498 (comment) Closes AtomLinter#796
Deeper explanation in #809, but TLDR: this is caused by how
|
- Added git attribute to export-ignore build-time babelrc config More info: atom/apm#498 (comment) Closes AtomLinter#796
- Added git attribute to export-ignore build-time babelrc config More info: atom/apm#498 (comment) Closes #796
Issue Type
Bug introduced with version
8.1.0
.Issue Description
When using
eslint-import-resolver-webpack
with awebpack.config.babel.js
,linter-eslint
no longer lints files in the project.The below console output is observed in Atom, when no linting occurs:
Reverting to
linter-eslint@8.0.0
(or using a non-Babelwebpack.config.js
) resolved the issue.Bug Checklist
Atom restarted, freshly reinstalled all plugins and Atom itself, and moved between
linter-eslint
versions to confirm.The text was updated successfully, but these errors were encountered: