# Indefined class

**URL:** <https://forum.juce.com/t/indefined-class/47648>\
**Category:** General JUCE discussion\
**Created:** [September 2, 2021, 10:11pm UTC](https://forum.juce.com/t/indefined-class/47648 "2021-09-02T22:11:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zwyne](https://avatars.discourse-cdn.com/v4/letter/z/0ea827/32.png) [@zwyne](https://forum.juce.com/u/zwyne)\
**Post date:** [September 2, 2021, 10:11pm UTC](https://forum.juce.com/t/indefined-class/47648/1 "2021-09-02T22:11:41Z")

</div>

i’m trying to make my first little plugin in juce  
it’s a simple simpler nut i have a weid error  
juce::FileChooser n’a pas de membre browseForFileToOpen  
any one here can solve this ??  
and thx uuu \<3

---

<div class="post-metadata">

**Author:** ![asimilon](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/asimilon/32/4235_2.png) [@asimilon](https://forum.juce.com/u/asimilon)\
**Post date:** [September 3, 2021, 11:21am UTC](https://forum.juce.com/t/indefined-class/47648/2 "2021-09-03T11:21:43Z")

</div>

This isn’t explicitly stated in the main documentation yet unfortunately, but modal loops are no longer permitted by default, of which `browseForFileToOpen` was one such method relying on a modal loop.

> <https://github.com/juce-framework/JUCE/blob/master/BREAKING-CHANGES.txt#L100>

Since you’re starting out don’t get into bad habits by enabling them again, instead use `launchAsync` [JUCE: FileChooser Class Reference](https://docs.juce.com/master/classFileChooser.html#ac888983e4abdd8401ba7d6124ae64ff3)

There is an example however of how to use `launchAsync` at the top of the FileChooser docs.
