genyus
WWasp
•Created by Jaïr on 1/20/2025 in #🙋questions
I get a blank page after running "cd <my-project-name>wasp start" (already migrated the db).
Can you check the network tab in your browser tools? The page container has loaded, but looks like you perhaps have a stalled request blocking the content from loading
13 replies
WWasp
•Created by RichardHpa on 3/10/2024 in #🙋questions
Can I split up the main.wasp file into seperate files
Actually, explaining the problem gave me a clue to what the cause was. I'd placed the new sub-files under /src/config, and realised they were getting compiled in the wrong location. I moved them outside of the src folder to /config and it all works!
28 replies
WWasp
•Created by RichardHpa on 3/10/2024 in #🙋questions
Can I split up the main.wasp file into seperate files
I did follow these steps initially and got the main.wasp.ts file working fine. The problem I described only started when I tried to refactor it, following the example in @mm's Gist
wasp ts-setup
added the following entry to my package.json:
When I examine the output files in my .wasp folder, I see that for .wasp/main.wasp.ts and the linked .wasp.ts files in .wasp/config, wasp-config
resolves to /Users/gary/.local/share/wasp-lang/0.15.2/data/packages/wasp-config/dist/index
and they're all happy
However, for the .wasp.ts files in .wasp/out/sdk/wasp/ext-src/config with the reported errors, wasp-config
resolves to /Users/gary/.local/share/wasp-lang/0.15.2/data/packages/wasp-config/dist/run
And checking of the contents of the run.d.ts file:
I have no idea how or why this discrepancy is occurring.28 replies
WWasp
•Created by e1.victor.o on 1/19/2025 in #🙋questions
Would wasp be efficient enough for a bill payment web app?
Makes sense, thanks
15 replies
WWasp
•Created by e1.victor.o on 1/19/2025 in #🙋questions
Would wasp be efficient enough for a bill payment web app?
Just tag @Wasp Team
15 replies
WWasp
•Created by Jennn_ on 1/17/2025 in #🙋questions
cannot use local host
It would help if you could share the console output or a screenshot of what you're seeing. The more detail you can provide, the easier it becomes to diagnose
9 replies
WWasp
•Created by RichardHpa on 3/10/2024 in #🙋questions
Can I split up the main.wasp file into seperate files
Did you have to make any changes outside of the *.wasp.ts files? I attempted this refactor operation in my project following your example and while all the code looks correct, I get errors during compilation:
I've been fiddling for a while, but haven't yet found a way to avoid these errors
28 replies
WWasp
•Created by khb on 1/17/2025 in #🙋questions
Having Trouble Getting my UI to behave
Glad you got it sorted 👍🏾
10 replies
WWasp
•Created by khb on 1/17/2025 in #🙋questions
Having Trouble Getting my UI to behave
I couldn't reproduce the exact issue shown in your first screenshot, but I could get the layout to break. You have the
h-screen
class applied to the div containing your canvas, which forces it to 100vh and the canvas overflows depending on the screen height. Remove that class and it will expand to the height of it's contents, which solved the problem in my browsers, at least10 replies
WWasp
•Created by fustuk. on 1/12/2025 in #🙋questions
Weird vscode bug
Hard to triage without any visibility, but have you modified your tsconfig.json, by chance?
17 replies
WWasp
•Created by fustuk. on 1/12/2025 in #🙋questions
Weird vscode bug
No ignore rules singling out that file or anything? Super weird. Maybe just rename/create a new creators.js file and move on 😅
17 replies
WWasp
•Created by fustuk. on 1/12/2025 in #🙋questions
Weird vscode bug
I'd be curious to know what's different about the exports in creator.js. If you try moving functions between your two .js files (e.g.
verifyTelegramChannel
and getLandingPages
, does the behaviour still persist?17 replies
WWasp
•Created by johne5 on 1/7/2025 in #🙋questions
new install of Wasp and a template is having DB connection issue
Sorry to hear it, but all the best with your project
72 replies
WWasp
•Created by johne5 on 1/7/2025 in #🙋questions
new install of Wasp and a template is having DB connection issue
@johne5 I'm not sure I'm familiar enough with Wasp to confidently answer your questions, but you can make it easier to get helpful responses by including more specific details about your problem and tag @Wasp Team to get their attention.
If my newly install of Wasp and a template is having DB connection issuesWhich template are you using?
when i try and sign up a user. it displays a "Network Error".Can you view the network requests in your browser DevTools to confirm which request(s) is failing and with which error codes? Do you see any error output in the server console when you attempt to load that
step 5 is failing.If step 3 (
wasp db studio
) worked, then your database is running and the problem is more likely a communication failure between your front-end and back-end.
i've reinstalled linuxIs Linux the base OS on your system?
72 replies
WWasp
•Created by Ivan on 1/4/2025 in #🙋questions
Can I use this repo https://github.com/WeferralHq/weferral-api with the starter kit
@Ivan I'm not a member of the core team, but just a few observations:
1. If you want to continue your conversation with the bot, you have to "@" it in your replies, i.e. "@kapa.ai"
2. The repo you're asking about is very outdated and hasn't been updated for 4 years, so I expect it would require some effort to get it working with current runtimes and dependencies.
3. I'm no Wasp expert, but it doesn't appear that this repo could be easily integrated into a Wasp project. While it shares Node and Postgres in common with Wasp, it accesses the database directly (which Wasp doesn't support, AFAIK) and has a whole different architecture.
4. As the bot suggested above, if you want to integrate an API like this, I think you'd have to deploy it separately and then define custom operations in your Wasp app to call into it
9 replies
WWasp
•Created by genyus on 12/16/2024 in #🙋questions
Accessing static files
Turns out that this is another question springing from my relative unfamiliarity with Typescript. I was trying to load JSON schemas from .json files, but TIL you can just define them directly in TS, which is way cleaner.
19 replies
WWasp
•Created by genyus on 12/16/2024 in #🙋questions
Accessing static files
Thanks for confirming. I figured this approach was likely unreliable, but it works for now and I've added a task to my backlog to implement your suggested solution at some point
19 replies
WWasp
•Created by genyus on 12/16/2024 in #🙋questions
Accessing static files
I definitely won't be going down the second route, but will explore the first. Thank you for the pointers
19 replies
WWasp
•Created by genyus on 12/16/2024 in #🙋questions
Accessing static files
@Wasp Team Looking at the referenced issue (https://github.com/wasp-lang/wasp/issues/609), it's been marked as closed by https://github.com/wasp-lang/wasp/pull/1229, but that PR appears to only address client-side assets, not server-side ones. I recognise this is still a WIP, but can anyone explain how I should manage assets in a way that will work both in development and production, at present? I'm currently thinking to just hard-code the two respective paths and use whichever one exists?
19 replies
WWasp
•Created by genyus on 12/16/2024 in #🙋questions
Accessing static files
@kapa.ai The schema files are already in a sub-directory of the src folder, but the proposed modification doesn't work in the local environment.
process.cwd()
resolves to .wasp/out/server and the src folder in that directory doesn't contain the static files; which are only available in .wasp/out/sdk/wasp/ext-src19 replies