Node.js/nuxt:修订间差异
来自康健生活
| 第40行: | 第40行: | ||
* ENOSPC: System limit for number of file watchers reached, watch | * ENOSPC: System limit for number of file watchers reached, watch | ||
*: 系统监听数上限 | *: 系统监听数上限 | ||
* error Unable to resolve path to module '@@/pages/search/navmenu.vue' import/no-unresolved | |||
*: {{shc|<syntaxhighlight lang="bash"> | |||
npm i --save-dev eslint-import-resolver-alias | |||
</syntaxhighlight>|$}} | |||
*: <syntaxhighlight lang="javascript"> | |||
settings: { | |||
'import/resolver': { | |||
alias: { | |||
map: [ | |||
['@', './'], | |||
['@@', './'], | |||
['~', './'], | |||
['~~', './'], | |||
], | |||
} | |||
} | |||
},</syntaxhighlight> | |||