我有一个简单的Nuxt项目,我正在工作,我安装了
Vue Icons
并试图将搜索图标添加到我的组件中,但编译时出现以下错误:
This dependency was not found:
* @vue-icons/feather in ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./components/SiteHeader.vue?vue&type=script&lang=js&
To install it, you can run: npm install --save @vue-icons/feather
但我已经在src和functions文件夹(我在firebase上托管)上安装了它
"dependencies": {
"@nuxtjs/firebase": "^7.6.1",
"@vue-icons/feather": "^1.0.19",
"firebase": "^8.9.1",
"isomorphic-fetch": "^3.0.0",
"nuxt": "^2.0.0"
}
我使用的进口声明是直接从网站上复制的
import { SearchIcon } from "@vue-icons/feather";
我读过一些类似的问题
transpiling the library
,但这似乎不起作用,我需要将第三方库添加到nuxt的其他部分吗。配置文件?