W
Wasp4mo ago
devrim

my cursor ide broke something, i have no idea how to fix it.

i'm getting this error
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@wasp/core' imported from /Users/d/Projects/videoupdate/videoupdate/app/.wasp/out/server/bundle/server.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@wasp/core' imported from /Users/d/Projects/videoupdate/videoupdate/app/.wasp/out/server/bundle/server.js
tried wasp clean/build/start steps but it's not helping..
4 Replies
kapa.ai
kapa.ai4mo ago
Hi @devrim. 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 error message you provided, it seems like the Wasp compiler is unable to find the '@wasp/core' package. This could be due to a number of reasons such as incorrect file paths or missing dependencies. Here are a few steps you can try to resolve this issue: 1. Check your Wasp version: Ensure you have the latest version of Wasp installed. You can check this by running wasp version in your terminal. If you don't have the latest version, consider updating it. 2. Run wasp clean and wasp start: You mentioned that you've already tried this, but it's worth repeating. The wasp clean command will delete all the old node_modules and other build artifacts. After running wasp clean, try running wasp start again to reinstall all the dependencies and start the app. 3. Check your network connection: Sometimes, npm install can fail due to a slow or unstable network connection. If you suspect this might be the case, try running the commands again when you have a stable connection. 4. Check your file paths: Ensure that the paths to your files are correct. The error message indicates that the compiler is unable to find the '@wasp/core' package in the specified location. Make sure that the package is indeed located there. If none of these steps work, consider reaching out to the Wasp community on their Discord server (https://discord.com/channels/686873244791210014) or Github (https://github.com/wasp-lang/wasp) for further assistance. Sources: - Github Issue 159 (https://github.com/wasp-lang/wasp/issues/159) - Github Issue 1664 (https://github.com/wasp-lang/wasp/issues/1664) - Discord support thread (https://discord.com/channels/686873244791210014/1215750573278629958) - Discord support thread (https://discord.com/channels/686873244791210014/1213958217537814640) - Discord support thread (https://discord.com/channels/686873244791210014/1212533517360177253) - Discord support thread (https://discord.com/channels/686873244791210014/1219194204622688266) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @devrim, 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?
devrim
devrimOP4mo ago
this was one of the most annoying debugging sessions i had - apparently cursor adds this import to on one of the files import { HttpError } from '@wasp/core/server'; instead of import { HttpError } from 'wasp/server'; pfew. here is to the hour im not gonna get back.
Zuck
Zuck4mo ago
@devrim LLM's can be annoying sometimes. I always try to prep them (same with cursor) by copy and pasting a lot of the WASP docs in before hand, especially actions and queries page. But the best thing that helped me for the imports is just typing in "import httper..." and then cursor (well i guess vscode) will autocomplete the rest of the import
No description
miho
miho4mo ago
@devrim I'm glad you figured it out! Nice tip @Zuck
Want results from more Discord servers?
Add your server