Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
'ionicons/icons' does not contain an export named 'star'

I am using ionic react to make an app. When I want to add IonIcon it says

'ionicons/icons' does not contain an export named 'star'


Here is my code

import { IonApp, IonButton, IonContent, IonFooter, IonHeader, IonIcon, IonTitle, IonToolbar } 
from '@ionic/react';
import React from 'react';
import { star } from 'ionicons/icons';
const Home = () => {

return (
    <IonApp>
        <IonHeader translucent>
    <IonToolbar>
      <IonTitle>Home</IonTitle>
    </IonToolbar>
  </IonHeader>
        <IonContent>
            <h3>Hello</h3>
        </IonContent>
        <IonFooter>
            <IonToolbar>
                <IonButton> <IonIcon icon={star}> </IonIcon> Home</IonButton> 
            </IonToolbar>
        </IonFooter>
    </IonApp>
);
};

export default Home;
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Wherever you're using Home you're not importing it correctly.

import Home from './home', not import {Home} from './home'

Or Home instead of home.

about 4 years ago · Juan Pablo Isaza Report

0

I created the app firstly by npx creat-react-app then installed ionic-react on that. The icon was not showing on th file. But after creating an app by ionic start the icons are working fine.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!