StellateHQ / fuse

Fuse: The fastest way to build and query great APIs with TypeScript
https://fusedata.dev
MIT License
550 stars 13 forks source link

Bug: fuse directory isn't generated #137

Closed corydeppen closed 8 months ago

corydeppen commented 8 months ago

Description

I've noticed the fuse directory isn't being generated after running fuse dev in a fresh project created by create-vite. Once the project was created, I ran npx create-fuse-app, which generated the types directory and _context.ts, schema.graphql, and .vscode/settings.json files, modified tsconfig.json, and started the server, but there wasn't any terminal output showing the codegen had run. Even though the server does start up, the only query field available is _version.

Versions

corydeppen commented 8 months ago

The calls to writeFile are both throwing a similar error, e.g.

ENOENT: no such file or directory, open '/path/to/src/fuse/index.ts'

The files are successfully generated if I manually add the fuse directory and run fuse dev.