Closed corydeppen closed 7 months ago
I've followed these exact steps and was not able to reproduce the issue, mind providing a minimal reproducible example?
The following example app was created using the default Vite template in Stackblitz. I only ran npx create-fuse-app
to add Fuse.
https://stackblitz.com/edit/vitejs-vite-1dizhg?file=types%2FUser.ts
Once the app is running, stop the terminal, run npx fuse dev
, and then browse to the server once it's running. You should see that the user
query field isn't present in the documentation explorer. Making a change to the User.ts
file and saving should also display the duplicate typename error in the terminal.
Solved in 0.12.1, thank you so much for the reproduction https://stackblitz.com/edit/vitejs-vite-mvvebx?file=package.json
Description
I'm unsure if these are related, but the schema in a fresh Vite app with Fuse doesn't contain the example
user
field after runningfuse dev
and an error is thrown when saving theUser.ts
file.The server starts as expected but the user field isn't present in the schema. Hitting save on
/types/User.ts
throws the following error:Versions