简体   繁体   English

类型错误:无法读取未定义的属性“eslint”

[英]TypeError: Cannot read property 'eslint' of undefined

I have this problem when I used nuxt-community/koa-template in github, I have already used such instructions as "NPM install",but problem still remain.我在github中使用nuxt-community/koa-template时遇到了这个问题,我已经使用了诸如“NPM install”之类的说明,但问题仍然存在。 Please give me some solutions.请给我一些解决方案。

It is because of old eslint loader that dont work with newest nuxt.这是因为旧的 eslint 加载器不适用于最新的 nuxt。

Dont use nuxt-community/koa-template, use create-nuxt-app https://github.com/nuxt/create-nuxt-app .不要使用 nuxt-community/koa-template,使用 create-nuxt-app https://github.com/nuxt/create-nuxt-app It have a koa as an option and it wont have this problem它有一个 koa 作为选项,它不会有这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM