Replacing the opensaas demo app with my own.
@kapa.ai I am making an app using the open SAAS template. I made my custom app with mage and attempted to replace the demo app code with the mage code. I changed it everywhere. When I ran wasp start it wouldn't compile because it said it was missing the demo app code. What did I do wrong?
2 Replies
Hi @wbjb. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided in the knowledge sources, it seems you may have encountered an issue while trying to replace the OpenSaaS demo app with your custom app. Here are a few points to consider:
1. When using the OpenSaaS template, it's generally recommended to modify the existing code rather than completely replacing it. As mentioned by Community Member 8 in this Discord thread (https://discord.com/channels/686873244791210014/1220792321805647872), you should "get the template in full and remove the parts of open SaaS you don't need."
2. If you've replaced all the demo app code, you might have inadvertently removed some crucial components that the OpenSaaS template relies on. For example, the
App
component is used to wrap all other components in your app, as explained by Community Member 36 in this Discord thread (https://discord.com/channels/686873244791210014/1219134547711758416).
3. It's possible that you might have missed updating some references to the demo app in your main.wasp
file or other configuration files. The Wasp compiler relies on these files to generate the necessary code.
To resolve this issue, I would recommend the following steps:
1. Start with a fresh copy of the OpenSaaS template.
2. Gradually integrate your custom app code into the existing structure, replacing parts of the demo app one at a time.
3. Make sure to update all necessary references in the main.wasp
file and other configuration files.
4. After each significant change, run wasp compile
to check for any errors and address them incrementally.
If you continue to face issues, it would be helpful to share more specific error messages or code snippets. The Wasp community is generally very supportive, as seen in the various Discord threads, and can provide more targeted assistance with more details.
Remember, you can always use wasp clean
followed by wasp start
to get a fresh start if things get too messy, as suggested by Community Member 8 in another Discord thread (https://discord.com/channels/686873244791210014/1098429088164753498).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @wbjb, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?This looks good. I'll try it
Oh I think I know what I did. I didn't update the routes in main. Wasp so when going to the app page it was trying to import something I had deleted