Error Module not found

I generated an app and I am gettingthe error: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@server/aiModule.js' imported from ... /ext-src/actions.js I am very much a noob to all of this and not sure what or where the aiModule.js is. Any chance you can help me figure out what happened? Here is my app link: https://magic-app-generator.wasp-lang.dev/result/9bf07e7e-cd25-44d4-9132-51099609aaeb
GPT Web App Generator ✨
Generate your full-stack React, Node.js and Prisma web app using the magic of GPT and the Wasp full-stack framework.
4 Replies
martinsos
martinsos16mo ago
Nice job generating the app! More complex the app, the more likely GPT is to make silly mistakes, and this must be one of them. What I am guessing is that it imported aiModules.js file, but didn't create it, instead it just decided that is something that you will create :). GPT sometimes does that, if you give it pretty complex task, it will just assume all that functionality is in some file and already working and it will just pretend to use it. You could solve this by writing that file yourself, in server/ dir. I am looking at your app descrption - impressive app! It is quite complex though, and I can guarantee that there will be quite some mistakes in the code that our Generator can generate at this stage - you can't expect it right now to generate a working app, instead it will generate the best it can and then it is up to you to work from there, fixing all mistakes and adding the code that is missing, and that is quite some work if the app is quite complex.
Xenocide122
Xenocide122OP16mo ago
ok, I was afraid of that. I did try creating aiModule.js but not sure I put it in the right spot and no idea what it is supposed to do as I am still getting the error I think i place it in the wrong spot
martinsos
martinsos16mo ago
Yeah, the part where you are not sure what it is supposed to do is the main hurdle, it requires you basically to program it properly. You could use ChatGPT to help you with that possibly, but it will still be quite some work I expect. Sorry about that but these are just the capabilities our generator currently has.
Xenocide122
Xenocide122OP16mo ago
Darn, ok, well I don't know anything about any of these systems so I have a lot to learn beore I can figure all of this out. Thanks for the help!
Want results from more Discord servers?
Add your server