WaspW
Wasp15mo ago
randopixel

Problems with operations

I am trying to set up a simple crm foundation. I have added the schema entries and updated schema, i have added the routing and queries/actions to the wasp file, making sure to use the proper pathing - "@src/crm/operations"

and routing:

route CRMRoute { path: "/crm", to: CRMPage }
page CRMPage {
authRequired: true,
component: import CRMMain from "@src/crm/CRMMain"
}
all of my components import from 'wasp/client/operations'

but, for some reason the system is trying to find the operations in wasp/ext-src/crm/operations.

[ Wasp ] server/operations/actions/index.ts(13,52): error TS2307: Cannot find module 'wasp/ext-src/crm/operations' or its corresponding type declarations.
[ Wasp ] There are types at '/mnt/d/wasp-projects/st-saas/app/node_modules/wasp/dist/ext-src/crm/operations.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
[ Wasp ] server/operations/actions/index.ts(14,52): error TS2307: Cannot find module 'wasp/ext-src/crm/operations' or its corresponding type declarations.

Can anyone tell me whats going on?
Was this page helpful?