You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use the generated approach following the step in the tutorial (but with npx since we're not using npm unfortunately).
npx graffle --schema https://countries.trevorblades.com/graphql works well
A graffile folder is generated with .ts files and imports pointing to .js files
It is created in the root of the website, just like the tutorial suggests.
Also in the root I create a main.ts file, although I assume it could be a module located anywhere. Still, making sure I don't divert more from the docs than necessary (npm being the only one, which I guess should not matter)
When I run npx tsx main.ts I get the error in the screenshot above.
Screenshot
Description
Trying to use the generated approach following the step in the tutorial (but with npx since we're not using npm unfortunately).
npx graffle --schema https://countries.trevorblades.com/graphql
works wellA
graffile
folder is generated with .ts files and imports pointing to .js filesIt is created in the root of the website, just like the tutorial suggests.
Also in the root I create a
main.ts
file, although I assume it could be a module located anywhere. Still, making sure I don't divert more from the docs than necessary (npm being the only one, which I guess should not matter)When I run
npx tsx main.ts
I get the error in the screenshot above.Reproduction Steps/Repo Link
npx graffle --schema https://countries.trevorblades.com/graphql
main.ts
file according to the docsnpx tsx main.ts
If I correct all the import paths inside all the files manually I can get it running.
The text was updated successfully, but these errors were encountered: