trapkinglazar
WWasp
•Created by trapkinglazar on 3/3/2025 in #đŸ™‹questions
TypeScript issues:
wasp version
0.16.2
on Ubuntu
having type safety issues that are crashing my wasp, i can't get started on developing
I replaced the demo-app with something nearly identical, yet it throws cannot find type on this:
Cannot find module 'wasp/client/operations' or its corresponding type declarations.ts(2307)
// src/savant-start/SavantStartPage.tsx
import React, { useState, useEffect } from 'react'
import { CgSpinner } from 'react-icons/cg'
// Official Wasp approach for queries/actions in client code:
import { useQuery } from 'wasp/client/operations'
import { getAllAnkiCards, uploadAnkiFile } from './operations'
... rest of code
my operations file also has trouble importing HttpError which is part of wasp?
Cannot find module 'wasp/server' or its corresponding type declarations.
// src/savant-start/operations.ts
import OpenAI from 'openai';
import { HttpError } from 'wasp/server';
import { z } from 'zod';
...rest of code
i tried migrating db. i dont understand how the type definitions are created or why they aren't being picked up. i did not modify tsconfig9 replies