# Flux error

**URL:** https://discourse.julialang.org/t/flux-error/129818
**Category:** General Usage
**Tags:** question
**Created:** [June 11, 2025, 7:21pm UTC](https://discourse.julialang.org/t/flux-error/129818 "2025-06-11T19:21:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Smara\_Kazenango](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/smara_kazenango/32/130333_2.png) [@Smara\_Kazenango](https://discourse.julialang.org/u/Smara_Kazenango)
#### Post date: [June 11, 2025, 7:21pm UTC](https://discourse.julialang.org/t/flux-error/129818/1 "2025-06-11T19:21:35Z")

</div>

using Flux.Data: DataLoader I am getting error that Data is not defined?

---

<div class="post-metadata">

### Author: ![CarloLucibello](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carlolucibello/32/3278_2.png) [@CarloLucibello](https://discourse.julialang.org/u/CarloLucibello)
#### Post date: [June 11, 2025, 8:43pm UTC](https://discourse.julialang.org/t/flux-error/129818/2 "2025-06-11T20:43:19Z")

</div>

Where did you read that? It was like that in very old flux’s versions. Now it is just `using Flux: DataLoader`. And the DataLoader is actually implemented in MLUtils.jl if you want to use it independently from Flux.
