W
Wasp-lang•9mo ago
MOTLAKZ

Repetitive Undetected Syntax Error with MageAI

Hey guys, I've been testing out the MageAI app generator and at first it worked fine but since then I keep getting the same repetitive error that make it impossible to load the app no matter how may apps I generate or how many times I retry. I think I tried over 20 apps, more than half of which represent the same issue. This started on 03 Mar 2024 Anybody know why?
No description
8 Replies
Vinny (@Wasp)
Vinny (@Wasp)•9mo ago
based omn the error it looks like your Dashboard.jsx file is trying to import an operation that doesn't exist, e.g. "deleteCoverLetter". can you share the contents of your wasp file and also look to make sure deleteCoverLetter exists in it, and it is importing it from the proper file, and that it is exists in that file? 🙂
martinsos
martinsos•9mo ago
@MOTLAKZ idea is that if Mage (GPT) makes some mistakes, you would fix them on your own. It is impossible to not have it make mistakes at all -> it often makes some mistakes. You could try warning it in your description of an app about it, that might help, if you really want to avoid tha tmistake on th efirst try. One thing we did do couple of days ago is switch from GPT 3.5 0613 to 0125, since 0613 is getting deprecated in a couple of months and also 0125 allows for bigger context. So that also might be reason why it is now failing specifically on this.
MOTLAKZ
MOTLAKZOP•9mo ago
Thanks. This is the one thing I haven't tried. Good to know. I am excited to see what it can do down the line
martinsos
martinsos•9mo ago
I recommend starting with Mage, and then contiuing with https://github.com/paul-gauthier/aider
MOTLAKZ
MOTLAKZOP•9mo ago
Yes. I think I managed to fix this yesterday, although I was presented with different issues. It's a relief knowing how to sort it out now Thank you. Will have a look
martinsos
martinsos•9mo ago
Awesome! Mage is really an experiment, and its main strength is in giving you an idea of how such an app could be done in Wasp. But the fact is, it will have these mistakes, since GPT makes them, so you shouldn't look at it as a way to create an app that works out of the box, but a way to kick start your app, get some ideas. Good luck!
MOTLAKZ
MOTLAKZOP•9mo ago
I'll consider this moving forward. It works pretty great with existing examples and teaching me a lot about using Wasp and working with a full stack application. That's more than one could hope for
martinsos
martinsos•9mo ago
That means a lot, thanks for kind words :)!
Want results from more Discord servers?
Add your server