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
[edge] Module build failed: TypeError: Cannot read property 'eslint' of undefined #3216
Comments
@tdhulster
|
AHA! Damn, so simple :) Thank you! I didn't look into it since the blogpost stated that everything would be magically migrated.
And therefore overlooked this one:
Issue can be closed I guess but might be usefull for other people having the same issue. |
@tdhulster @syffs I believe the correct configuration should be using build: {
/*
** Run ESLint on save
*/
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
} See the Related clarification regarding to this confusion: #3145 Also, I believe that the reason |
This bug-report has been fixed by @syffs.
|
I was able to find a workaround: webpack/webpack#6556 (comment)
I couldn't get the build to lint if I use Update: I updated the npm package |
@syffs Your comment would inadvertently disable linting (and thus just disable any linting errors) because Since your comment is so popular (and ranks highly on google for 'nuxt eslint errors') it would be helpful if you could update your comment 🙂 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
edge
Reproduction link
https://github.com/tdhulster/nuxt-edge
Steps to reproduce
npm install -g vue-cli
vue init nuxt-community/starter-template nuxt-test
npm uninstall nuxt
npm install nuxt-edge -S
npm run dev
What is expected ?
No error is thrown
What is actually happening?
Following error is thrown:
Module build failed: TypeError: Cannot read property 'eslint' of undefined
at Object.module.exports (/node_modules/eslint-loader/index.js:148:18)
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.
Additional comments?
All comments and steps can be found in Readme as well
The text was updated successfully, but these errors were encountered: