# Erreur 980

**URL:** <https://forum.makecode.com/t/erreur-980/19680>\
**Category:** Arcade\
**Tags:** game\
**Created:** [May 4, 2023, 4:58pm UTC](https://forum.makecode.com/t/erreur-980/19680 "2023-05-04T16:58:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [May 4, 2023, 5:48pm UTC](https://forum.makecode.com/t/erreur-980/19680/2 "2023-05-04T17:48:58Z")

</div>

According to the uber-handy [Makecode Documentation](https://arcade.makecode.com/device/error-codes)

> ## Panic codes
> 
> Some panic codes are for general errors that might occur while your program runs. Other times, a device or resource you want to use isn’t present or isn’t working and you receive a panic code for that. Several panic codes are related to the use of memory and accessing data in it.
> 
> - **980** (`PANIC_CAST_FROM_UNDEFINED`): attempted cast from an `undefined` value to another type

A 980 error usually occurs when something related to using `undefined` goes wrong.

> [@What is a 980 error on a PyGamer?](https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977):
>
> I tried porting a game to my pygamer and it ports and runs fine until one point where it crashes and gives a 980 error code on-screen. At that point only resetting works. Anyone knows what’s up?

This topic also covers a 980 error.  
I’m not sure how much I can help considering I don’t speak French (perhaps @YuHayate could help with that?). Try using the debugger until you run into the error again. It should give some more useful information

---

_[View the full topic](https://forum.makecode.com/t/erreur-980/19680)._
