TypeError: Cannot read property ‘eslint’ of undefined

2018-12-13 12:39   Tags:
ERROR in ./.nuxt/client.js
Module build failed (from ./node_modules/eslint-loader/index.js):
TypeError: Cannot read property 'eslint' of undefined
    at Object.module.exports (E:\Code\web\web\vue-nuxt-test-1\nuxt5\node_modules\eslint-loader\index.js:148:18)

最近在研究vue的nuxt.js

安装好nuxt.js

于是启动npm

npm run dev

然后…

TypeError: Cannot read property 'eslint' of undefined

这是前几天的问题了,一开始以为那个eslint-loader安装失败原因

于是npm i eslint-loader,然并没有用…

后面由于要写论文,昨天终于搞定了,借鉴网上的…说白了就是抄的…

今天继续搞,也把问题解决了

nuxt.config.js里找到eslint-loader

根据github某某他的解释

TypeError: Cannot read property 'eslint' of undefined

我就把is去掉了,然后重新启动就ok了,,

下面是我的,已经去掉了is

TypeError: Cannot read property 'eslint' of undefined

http://localhost:3000/………OK

TypeError: Cannot read property 'eslint' of undefined

更多解释请看github:https://github.com/nuxt/nuxt.js/issues/3216

查看原图