WaspW
Wasp3y ago
Chris

[Solved] Server side relative import fails to find the file

I'm attempting to create utility style files for the server but unable to import them properly in the server files.

Per the docs: https://wasp-lang.dev/docs/language/overview (has almost exactly what I'm attempting to do)

import { doSomeThing } from './serverUtils'
import { generateImage } from '../shared/chatActions'


It's throwing an error:
Cannot find module '...../.wasp/out/server/dist/ext-src/serverUtils'


https://github.com/Kikketer/StorAI/blob/5463f03fb3ff799dd1737f55a55d0b1ff4247246/src/server/actions.ts#L3-L3
Wasp is a declarative language that recognizes web application-specific terms (e.g. page or route) as
GitHub
Wasp Hackathon entry for a dungeon crawl adventure - StorAI/actions.ts at 5463f03fb3ff799dd1737f55a55d0b1ff4247246 · Kikketer/StorAI
Was this page helpful?