question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ionicons not showing with ionic/vue

See original GitHub issue

Bug Report

Ionic version:

[x] 4.x

Current behavior:

Icons are not showing in the frontend. This is a strange behaviour since the X icon and the hamburger menu icon are showing correctly. In fact all the icons in this list are working fine: ‘ios-close’: icons.close.ios, ‘md-close’: icons.close.md, ‘ios-reorder’: icons.reorder.ios, ‘md-reorder’: icons.reorder.md, ‘ios-menu’: icons.menu.ios, ‘md-menu’: icons.menu.md, ‘ios-arrow-forward’: icons.arrowForward.ios, ‘md-arrow-forward’: icons.arrowForward.md, ‘ios-arrow-back’: icons.arrowBack.ios, ‘md-arrow-back’: icons.arrowBack.md, ‘ios-arrow-down’: icons.arrowDown.ios, ‘md-arrow-down’: icons.arrowDown.md, ‘ios-search’: icons.search.ios, ‘md-search’: icons.search.md, ‘ios-close-circle’: icons.closeCircle.ios, ‘md-close-circle’: icons.closeCircle.md,

These are the ones that are loaded by the appInitialize method in ionic-vue.common.js I can’t understand why the all the other icons are not working. As far as I can tell all the ionicons should be available straight out of the box when using ionic right?

Expected behavior:

The icon should appear

Steps to reproduce:

Related code:

<ion-button @click="startTraining">
                  
                        <ion-icon slot="icon-only" name="play"></ion-icon>
                    </ion-button>
                    <ion-button @click="close">
                        <ion-icon slot="icon-only" name="close"></ion-icon>
                    </ion-button>

The close icon is rendered correctly, the play's not.

Other information:

Ionic info:

Ionic:

   Ionic CLI : 5.4.16

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v12.14.0
   npm    : 6.13.4
   OS     : macOS Catalina

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cabassicommented, Feb 21, 2020

Thanks @rjurado01, I already know how to manually add icons. What I’m saying is that per documentations all the icons should be available without having to add them manually.

1reaction
liamdebeasicommented, Feb 26, 2020

Thanks for the issue. I am going to close this as we are waiting for Vue 3 to stabilize before we push forward with Ionic Vue development. Once Vue 3 stabilizes we will look into providing an update that brings better support for Ionicons (namely Ionicons v5). Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ionicons not showing with ionic/vue · Issue #20452 - GitHub
Bug Report Ionic version: [x] 4.x Current behavior: Icons are not showing in the frontend. This is a strange behaviour since the X...
Read more >
ion-icon not showing an icon in ionic vue - Stack Overflow
You need to import IonIcon component and individual icons seperately as below in template <ion-icon :icon="caretUpOutline" /> // please note ...
Read more >
Why Ion-Icon Is Not Showing In Ionic Vue Project - ADocLib
Javascript answers related to "react-native-ionicons not showing react native" images not appearing in react native ios. ionic cordova icon notification ...
Read more >
Can't get <ion-icon> to show a built-in icon in Vue app
Basically the <ion-icon> component just doesn't work with the premade built-in icons from the ionicons library. I can get <ion-icon src="…
Read more >
Announcing Ionic 6 - Ionic Blog
Today I am excited to announce the release of Ionic 6! This release adds improved desktop support, overhauled components, iOS and Android ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found