#Hello and help
hi there, I'm using wasp for the first time. I am trying to generate an app and I'm getting an error
jb1567us@DESKTOP-0LRJM07:/mnt/d/bookmarkwiki-3urm7$ wasp db migrate-dev
π --- Compiling wasp project... --------------------------------------------------
β --- [Error] Your wasp project failed to compile: -------------------------------
- /mnt/d/bookmarkwiki-3urm7/main.wasp @ 85:58-69
Type error:
Undefined identifier: BookmarkPage
84 |
85 | route BookmarkRoute { path: "/bookmark/:bookmarkId", to: BookmarkPage }
86 |
β --- [Error] Compilation of wasp project failed: --------------------------------
1 errors found:
3 Replies
Hi, AI generator may generate code that does not work, so please check if it looks correct to you.
You can try to run ready wasp example apps for the first time, they will work
Is it possible in that case to make Wasp iterate through its failed creation until the incorrect behaviour is fixed?
@Valkam unfortunately not yet -> in the future we would like to add that capability to Mage, but right now, whatever it generates is what you get and you have to iterate manually from there, including fixing the mistakes it might produce in the code it generated.
You can try running generation again btw, it will likely not do the same error (although it might do some other mistakes).