can not find "wasp/server/_types" module or declaration
any suggestion? this error won't effect dev, but I can't have the right type with action's params args, context.
4 Replies
Hi @luogao. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
It seems like you're having trouble with importing types from the
wasp/server
module. This could be due to a few reasons:
1. Incorrect import path: Make sure you're importing from the correct path. The correct import path should be wasp/server
and not wasp/server/_types
.
2. Wasp version: Ensure you're using the latest version of Wasp. You can check your Wasp version by running wasp version
in your terminal.
3. Wasp compiler: The Wasp compiler needs to compile the SDK for you to have all the wasp/*
packages. Try running wasp start
to start the compiler.
4. Wasp clean: If something broke in the .wasp
folder, you can try running wasp clean
to delete all .wasp
and node_modules
stuff, and then wasp start
to reinstall everything again.
If you're still having trouble, you might want to check out the Wasp documentation (https://wasp-lang.dev/docs/project/server-config#api-reference) for more information on how to use the server configuration in Wasp.
Sources:
- Discord support thread: Hey! Any ideas on some solutions to these errors? > Answers (https://discord.com/channels/686873244791210014/1215750573278629958)
- Docs > Project > Server Config > API Reference Part 1 (https://wasp-lang.dev/docs/project/server-config#api-reference)
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @luogao, 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?fixed by using the latest version of Wasp, thanks!
Wohooo @luogao, you just became a Waspeteer level 1!
Nice!