-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Module build failed. No ESLint configuration found. #2948
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
Comments
Sorry, I don't know npm can install a local package before. Could you please provide a small reporduction so we can debug this without trying to replicate this ourselves? That would be very helpful, thanks! |
@Syler921 have you tried adding the path to an |
@dousybox - All my modules are in different Github repositories because they are reused in other projects. I cant import all of them through the way that you explain. @LinusBorg - I have ignored the whole node_modules folder, but the build process fails again. |
@Syler921 Just a small reporduction, not need the full version. |
For linked modules, do this: // vue.config.js
module.exports = {
chainWebpack: config => config.resolve.symlinks(false)
} (Note: there might be issues with HMR when |
@sodatea Thank you, it works. |
For others who want to try a different solution, for me the one provided here (webpack-contrib/eslint-loader#202) worked. |
@sodatea What's the trick do? Can it break anything else that we should be aware of? Seems like a hazard for people to blindly apply a change like that (people are going to try it without knowing the consequences), because it can affect other cases besides just "fixing" that eslint error. |
it works ~~~~~ |
Hi there,
but it doesn't work.
|
thanks |
@pairmix I also met this problem, I because of the introduction of external js file, result in an error. If you want to introduce an external file, then the file must be in a project. So I finally built a project for external resources. I hope it can help you |
You, sir, are an absolute magician. Thank you! |
In my case, working with external files as well, solved the problem adding an .eslintrc.js file on the same folder of the external file |
thx |
In my case there were these hidden files .babelrc, editorconfig, .eslintignore, .eslintrc.js and .postcssrc.js(in case you have installed bootstrap). These files were not commited so when I took pull these files were missing. I resolved my problem by copying back these files. |
Amazing! I'm curious how it works 🧐 |
Anyone know how to apply
for Nuxt? |
Version
3.0.0
Node and OS info
NodeJS - 9.5.0, Windows 10
Steps to reproduce
I have the following issue when i try to build my vue-cli 3.0 project :
Building for production...
ERROR Failed to compile with 1 errors
Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 0)
No ESLint configuration found.
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.
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:
vue-cli-service build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\stsankov\AppData\Roaming\npm-cache_logs\2018-11-13T15_16_14_357Z-debug.log
Тhe problem occurs when i install one of the dependencies from my local machine ( not from github ) :
Аnyone who has encountered the problem ?
Thanks,
What is expected?
Successfull build
What is actually happening?
Error during the build process. ( vue-cli build )
The text was updated successfully, but these errors were encountered: