Open srmagura opened 1 year ago
Hey, can you please try this build, this better handles Windows paths for the watcher, but I need to verify if it solved it or not, I don't have a Windows machine with me.
https://www.npmjs.com/package/@graphql-codegen/cli/v/4.0.2-alpha-20230706143738-f59fb0497
Thanks for looking into it! Unfortunately, I tried build 4.0.2-alpha-20230706143738-f59fb0497 and the behavior was unchanged.
do you get a different output or is it still the same?
Exact same output.
Which packages are impacted by your issue?
@graphql-codegen/cli
Describe the bug
On Windows, running
graphql-codegen --watch
prints this warning:This is problematic if your GraphQL schema file is outside of the directory in which
graphql-codegen
is run.The issue does not occur on macOS or Linux.
Your Example Website or App
https://github.com/srmagura/graphql-codegen-windows-repro
Steps to Reproduce the Bug or Issue
See the README of the GitHub repository.
Expected behavior
No warnings when running
graphql-codegen --watch
.Screenshots or Videos
No response
Platform
graphql
version: 16.7.1@graphql-codegen/*
version(s): 4.0.1Codegen Config File
Additional context
No response