Problems in action.ts

Hi, I have many issues in action.ts which where not there a couple of days ago. The code is compiling and working but vsCode shows all those problems. I already tried wasp clean in the cli. I am operating wasp 13.1 with OpenSaaS. Has somebody an idea what could cause the problem? Thanks you!
No description
7 Replies
kapa.ai
kapa.ai•8mo ago
Hi @mindreaderlupoDO. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. However, based on the knowledge sources provided, there are a few things you could check: 1. Ensure that your actions.ts file is located in the correct directory (src/server/). If it's not, you might encounter import errors. source (https://discord.com/channels/686873244791210014/1216119302244270181) 2. Check the way you're importing your actions. If you're using a .js suffix in your import statement, try removing it. source (https://discord.com/channels/686873244791210014/1216119302244270181) 3. Make sure you're running wasp start so that the .js file can be built from the .ts file. source (https://discord.com/channels/686873244791210014/1216119302244270181) 4. Check if you're importing anything from wasp/server/* in your client code. This could potentially cause issues. source (https://discord.com/channels/686873244791210014/1216119302244270181) If none of these suggestions help, I recommend checking out the Wasp documentation (https://wasp-lang.dev/docs) or reaching out to the Wasp community for further assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @mindreaderlupoDO, 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?
Vinny (@Wasp)
Vinny (@Wasp)•8mo ago
hey @mindreaderlupoDO do you mind sharing the actions in your main.wasp file?
mindreaderlupoDO
mindreaderlupoDOOP•8mo ago
of course:
... action createProject { fn: import { createProject } from "@src/server/actions.js", entities: [Project] } action createQuestionnaire { fn: import { createQuestionnaire } from "@src/server/actions.js", entities: [Questionnaire] } action updateQuestionnaireSettings { fn: import { updateQuestionnaireSettings } from "@src/server/actions.js", entities: [Questionnaire] } action updateQuestionnaireQuestions { fn: import { updateQuestionnaireQuestions } from "@src/server/actions.js", entities: [Questionnaire, Question] } action answerQuestionnaire { fn: import { answerQuestionnaire } from "@src/server/actions.js", entities: [QuestionnaireAnswer] } ... The solution-ideas brought up by the bot, I already checked. BTW: What is the best way for code-pasting/syntax-highlighting here in discord?
Gwaggli
Gwaggli•8mo ago
Could this be related to the fix by @sodic ? Maybe upgrading to v0.13.2 helps @mindreaderlupoDO Reference: https://discord.com/channels/686873244791210014/1227500285572808755/1228024748429152419
Vinny (@Wasp)
Vinny (@Wasp)•8mo ago
use three of these (backticks) on a new line before the code and after the code oh good point. @mindreaderlupoDO try running curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s` in your terminal and then restart your wasp app
mindreaderlupoDO
mindreaderlupoDOOP•8mo ago
Oh great that helped. Thank you very much @Vinny (@Wasp) @Gwaggli
Vinny (@Wasp)
Vinny (@Wasp)•8mo ago
no problem. happy to help 🙂
Want results from more Discord servers?
Add your server