Did I accidentally delete a folder/files? 'wasp/client/router' & 'wasp/client/auth'
Extreme newbie, I may be way off base but I feel like I am missing two files.
33 Replies
Hi @Kelly Ellie. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
It's possible that you might be looking in the wrong place for these files. The
wasp/client/router
and wasp/client/auth
are not actual files or directories in your project. Instead, they are modules provided by the Wasp package that you can import in your code.
For instance, in the Wasp documentation (https://wasp-lang.dev/docs/auth/username-and-pass#4-create-the-client-pages), you can see an example where wasp/client/auth
is imported:
This line of code is importing the LoginForm
and SignupForm
components from the wasp/client/auth
module. These components are provided by Wasp and can be used in your application.
If you're getting an error that these modules cannot be found, it might be due to a problem with your Wasp installation or your project setup. You could try running wasp clean
to remove all generated code and other cached artifacts, and then wasp start
to start your application again. If the problem persists, you might want to check your Wasp installation or seek help from the Wasp community.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Kelly Ellie, 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?Are you running
wasp start
?Yes, I save my file then restart wasp.
you don't have to restart wasp after saving, it will refresh your app automatically
also, you shouldn't edit the contents of the
.wasp
folder
Could you try restarting the TypeScript server?
@kapa.ai how can I restart the typescript server in vscode?Let me check the knowledge base for you. One moment! :books:
----------------------
Restarting the TypeScript server in VSCode can help solve issues related to IntelliSense, autocompletion, and more. Here's how you can do it:
1. Open the Command Palette in VSCode. You can do this by pressing
Ctrl+Shift+P
on Windows/Linux or Cmd+Shift+P
on macOS.
2. In the Command Palette, type "TypeScript: Restart TS Server" and select it from the dropdown list.
This will restart the TypeScript server in VSCode. If you're working on a Wasp project and encountering issues, restarting the TypeScript server can sometimes help, especially if the issues are related to type checking or autocompletion.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Vinny (@Wasp), 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?TY Vinny. I restarted the TypeScript server but the issue persists. I don't think I touched anything in the .wasp folder
Wohooo @Kelly Ellie, you just became a Waspeteer level 2!
try running
wasp clean
and then wasp start
againwasp clean and wasp start have completed successfully, the issue persists. š
Shold there be a .wasp/client folder?
are you running wasp on windows with WSL?
yes
clean and start output
hmm paging maybe @miho or @sodic can help you here
but to be honest @Kelly Ellie I don;t see the issue. your app is running fine, isn't it?
Do you get any errors in the terminal or the browser console?
Im not seeing any issue functionally. In VScode I am seeing the red dots and underlined sections in Header.tsx . The underlined path is pointing to 'wasp/client/auth' but I dont see a folder named 'client' under .wasp