I need help making my compass app

I am trying to make a compass app but there’s an issue.

This is the link to my app: Thunkable

When I try to live view it from my phone, it says “Something has gone wrong. Check your blocks and reset this page”, but I don’t know what is my error. Can someone check my code and see what’s wrong with it? Thanks.

Also one more thing I forgot to say, the error message pops up on both my iPhone and Samsung device. If I try web view it lets me try the app, but I cannot test the compass itself because my computer doesn’t have a magnetometer.

The one thing I tried is to initialize your lists as empty lists. Because you’re inserting list items into a variable that doesn’t yet have a type. But the app still crashes so that wasn’t the fix.

Then I noticed that you are using green blocks as variables. They aren’t meant to be used that way. They’re more like constants. I think you just accidentally swapped the order. Try this, which works for me:

Hi there! I tried the new code you shown in the picture but it does not seem to work. This is my link:

I might have overlooked something, can you help me check it? Thank you.

Haven’t tested this yet, but perhaps you could do this:

The purple Call block is found under the Any Component tab

Found this on @tatiang 's old post

1 Like

To troubleshoot those blocks, I would recommend a technique for checking variable values: Debugging in Thunkable X (Video)