我正在尝试从其中一个图标向我的coreUI模板中插入图标-
但是,我收到此错误-
ERROR in ./node_modules/@coreui/icons/css/coreui-icons.css (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/@coreui/icons/css/coreui-icons.css)
(Emitted value instead of an instance of Error) CssSyntaxError: /home/dell/Downloads/Angular-6-Templates/Neo4j-Project/coreUI- angular6/node_modules/@coreui/icons/css/coreui-icons.css:12:13: ENOENT: no such file or directory, open '/home/dell/Downloads/Angular-6-Templates/Neo4j-Project/coreUI- angular6/node_modules/@coreui/icons/fonts/CoreUI-Icons-Linear-Free.eot'
10 | font-family: 'CoreUI-Icons-Linear-Free';
11 | src: url("../fonts/CoreUI-Icons-Linear-Free.eot?64h6xh");
> 12 | src: url("../fonts/CoreUI-Icons-Linear-Free.eot?64h6xh#iefix") format("embedded-opentype"), url("../fonts/CoreUI-Icons-Linear-Free.ttf?64h6xh") format("truetype"), url("../fonts/CoreUI-Icons-Linear-Free.woff?64h6xh") format("woff"), url("../fonts/CoreUI-Icons-Linear-Free.svg?64h6xh#CoreUI-Icons-Linear") format("svg");
| ^
13 | font-weight: normal;
14 | font-style: normal;
ℹ 「wdm」: Failed to compile.
还有警告-
dell@dell-Latitude-E6420:~/Downloads/api-venn$ npm i @coreui/icons
npm WARN @coreui/coreui@2.1.0 requires a peer of popper.js@^1.14.3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.1.3 requires a peer of popper.js@^1.14.3 but none is installed. You must install peer dependencies yourself.
npm WARN tsickle@0.33.1 requires a peer of typescript@3.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ @coreui/icons@0.3.0
updated 1 package and audited 39646 packages in 90.695s
found 0 vulnerabilities
请帮助。 我做到了-
npm install @coreui/icons --save
并在nav.ts中添加了“ icon-cog”
{
name: 'API Venn ',
url: '/api-venn',
icon: 'icon-cog',
children: [
{
name: 'Relationship based Venn',
url: '/api-venn/relationvenn',
icon: 'icon-puzzle'
},
{
name: 'Node based Venn',
url: '/api-venn/nodevenn',
icon: 'icon-puzzle'
}]
},