leveluptuts / gQuery

Not like jQuery. A GraphQL Fetcher & Cache for Svelte Kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working in Windows

itswadesh opened this issue · comments

Hi,

Unfortunatedly its not working for me in Windows. Here is my configuration

gQueryCodegen({
	schema: `http://localhost:7000/graphql`, 
	out: 'src/lib/gql', 
	gPath: '$lib/config/g', 
	debug: false
}),

Issue confirmed with Windows usage. It appears that the error is coming from the Execa package used in the codegen process during file cleaning, in the cleanGq command of the plugin.ts file. The command is working for me on an Ubuntu distro (though I'm having other issues further down the pipeline) and I imagine it was written and tested on a Mac, so it's probably safe to assume that the command is acceptable for Unix based systems.

Same to me. cleanGQ command fails on Windows. It shouldn't be difficult to implement cross-platform solution..

Oh, good call. I don't have a windows computer to test on but am happy to see a pr.