With the provided input code, option variable is being accessed before it is defined, causing TypeError: Cannot read properties of undefined (reading '__labelPrefix')
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
With the provided input code,
option
variable is being accessed before it is defined, causingTypeError: Cannot read properties of undefined (reading '__labelPrefix')
Input code
Config
Playground link
https://play.swc.rs/?version=1.3.37&code=H4sIAAAAAAAAA32QTQqDMBCF9znFrPwByQGU7grddi8iNh0lEBKJEyiId280GpRCZxPmZd6bj%2BmdFiSNhgHpjpOwclzbzGxPAWNnUdPDGjfmMDPwZZGc1VBvzVqnGUiSc8tV90JVxMmQytt2058We%2FkJv02c4cJo0dFOwKkbppwtjPUH6WilvrAGMG%2BbaN8AN5gvS0pICSdKC1jzSqibpYqeAOw92ikV1bff4LW%2Fd8mPEKOQKzNkq8mLHveXsmLsCxkjU49uAQAA&config=H4sIAAAAAAAAA22TQXLDIAxF7%2BJ1tu2iB%2BiuZ2AUEA4tRh4k0ngyuXuFY%2BM46c56fMniS1y7b7bdx7UbITPm%2BsVTErh0Hx3aAdjmMEp3UJkiD5HxdugEco9SJfymZ5GIcTk9dENIwU%2B1kqVhzMhcvzWjDJiEmw5ypl8NJReNjkQRIb3EBtiEJNhj3lItxQgjozlDbhn1b5ADU9qhIujMmGl8oMkFCZS02MocgjOWHDYQMloJZ9wkWkMlibWx1skMHR5L31f37ko8QywgrRZeZhv0jy3vRIHF%2BJL4Ce06vaP7JRdV8CajlJxWzTeFtPPhB1H7jMCcYMAtc%2BZe57BX%2Bn9UIXkdokyN6oS3rhL2ejkTgm83rF1jlrC5ldEVi%2FWGdiu%2BwN2FODg06L263ZL5N4g9bcVkGpF8C9U18NsM7qFZ92lP6wq8wE%2FtSh7HsfAB5PTMeBqOFF9KDCgnci9YjRB6hlm39zI%2B05Icqs3oHg4K17CtqQ5fyMT61FafdSE0x%2FSRjm199UUOkPq2lrcKyJUKrrN581N9727b61zXib8W4VzoD8zDcjEPBAAA
Expected behavior
Expected to be minified code something like this (or anything else matching the original structure)
Actual behavior
I am getting this
Version
1.3.37
Additional context
Originally reported as an issue to our lib: https://github.com/cloudscape-design/components/issues/785