add docs referencing info

This commit is contained in:
vincanger 2025-06-18 14:47:12 +02:00
parent 0061da2433
commit 10258f27ea
3 changed files with 10 additions and 4 deletions

View File

@ -84,7 +84,7 @@ These features are configured in [main.wasp](mdc:main.wasp).
## Troubleshooting
- **Wasp Type/Import Errors:** If you encounter TypeScript errors related to missing Wasp imports (e.g., from `wasp/client/operations`, `wasp/entities`, `wasp/server`) or unexpected type mismatches after modifying [main.wasp](mdc:main.wasp) or [schema.prisma](mdc:schema.prisma) , **try restarting the Wasp development server** (stop `Ctrl+C` and run `wasp start` again) before further debugging. Wasp needs to regenerate code based on these changes.
- **Wasp Type/Import Errors:** If you encounter TypeScript errors related to missing Wasp imports (e.g., from `wasp/client/operations`, `wasp/entities`, `wasp/server`) or unexpected type mismatches after modifying [main.wasp](mdc:main.wasp) or [schema.prisma](mdc:schema.prisma) , **prompt the user to restart the Wasp development server** (`wasp start`) before further debugging. Wasp needs to regenerate code based on these changes.
- **Operations Not Working:**
- Check that all required `entities` are listed in the operation's definition in [main.wasp](mdc:main.wasp).
- Verify the import path (`fn: import { ... } from "@src/..."`) in [main.wasp](mdc:main.wasp) is correct.
@ -103,4 +103,7 @@ These features are configured in [main.wasp](mdc:main.wasp).
- **Build/Runtime Errors:**
- Check import paths carefully (Wasp vs. relative vs. `@src/` rules, see [project-conventions.mdc](mdc:template/app/.cursor/rules/project-conventions.mdc)).
- Ensure all dependencies are installed (`npm install`).
- Check the Wasp server console and the browser's developer console for specific error messages.
- Check the Wasp server console and the browser's developer console for specific error messages.
### Referencing Wasp Documentation
- Search for and reference applicable LLM-optimized docs, available in [wasp-overview.mdc](mdc:template/app/.cursor/rules/wasp-overview.mdc)

View File

@ -78,4 +78,7 @@ This document outlines the specific conventions, file structures, and general ru
### Wasp Dependencies
- Avoid adding dependencies directly to the [main.wasp](mdc:main.wasp) config file.
- Install dependencies via `npm install` instead. This updates [package.json](mdc:package.json) and [package-lock.json](mdc:package-lock.json)
- Install dependencies via `npm install` instead. This updates [package.json](mdc:package.json) and [package-lock.json](mdc:package-lock.json)
### Referencing Documentation
- Make sure the user has added the applicable LLM-optimized docs, available in [wasp-overview.mdc](mdc:template/app/.cursor/rules/wasp-overview.mdc), in the chat context or settings when using AI-assisted coding tools.

View File

@ -50,7 +50,7 @@ This document covers the fundamental concepts of the Wasp framework and the basi
```
### Wasp Documentation
More info on Wasp's features can be found in the Wasp documentation:
More info on all of Wasp's features can be found in the Wasp documentation:
- Links to Wasp documentation sections (LLM-optimized): https://wasp.sh/llms.txt
- Complete Wasp documentation (LLM-optimized): https://wasp.sh/llms-full.txt
- Wasp Docs homepage (human-readable): https://wasp.sh/docs