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

385
Views
Getting an error while importing Loader from 'react-loader-spinner'?

The error I'm getting:

ERROR in ./src/components/Loading.jsx 9:33-39

export 'default' (imported as 'Loader') was not found in 'react-loader-spinner' (possible exports: Audio, BallTriangle, Bars, Circles, CradleLoader, Grid, Hearts, MutatingDots, Oval, Plane, Puff, RevolvingDot, Rings, TailSpin, ThreeDots, Triangle, Watch)

Here is my code:

import React from 'react';
import Loader from 'react-loader-spinner';

export const Loading = () => (
  <div className="flex justify-center items-center ">
    <Loader type="Puff" color="#00BFFF" height={550} width={80} />
  </div>
);
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

react-loader-spinner exports various loaders and you can use those loaders directly. And if you want to import all the loaders and use them. You can do it like this.

import * as Loader from "react-loader-spinner";

function App() {
  return <Loader.TailSpin />;
}

or

import {TailSpin} from "react-loader-spinner";

function App() {
  return <TailSpin />;
}

https://codesandbox.io/s/hopeful-herschel-652kq?file=/src/index.js:70-168

about 4 years ago · Juan Pablo Isaza Report

0

You just need to import that specific loader you want, as there are many of them that react-loader-spinner exports. For example the code below is for Rings loader.

All loader types are here on the official documentation.

import { Rings } from 'react-loader-spinner';

export const Loading = () => (
  <div className="flex justify-center items-center ">
    <Rings color="#00BFFF" height={80} width={80} />
  </div>
);
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!