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
when a .graphql file has syntax errors, Meteor just reports Error: Cannot find module 'myFile.graphql'
instead of printing an error from graphql-tag loader.
f.e.
/schema.graphql
# 'typ' instead of 'type'typQuerytest: String
}
/index.ts
importschemafrom'./schema.graphql';
will fail with Cannot find module './schema.graphql'. When I fix the syntax error, everything works fine.
I've played around with the package a bit, and the file.error get's called here, but Meteor seems to ignore that for some reason.
I'm not sure if it's a problem with the package or Meteor or my code.
@yurtsiv yeah, thank you for reporting this, I spent 10 minutes trying to understand why Meteor doesn't see my .graphql file to import.
Ended up just with an issue in the file itself, imports fine after fix
Hi,
when a
.graphql
file has syntax errors, Meteor just reportsError: Cannot find module 'myFile.graphql'
instead of printing an error from
graphql-tag
loader.f.e.
/schema.graphql
/index.ts
will fail with
Cannot find module './schema.graphql'
. When I fix the syntax error, everything works fine.I've played around with the package a bit, and the
file.error
get's called here, but Meteor seems to ignore that for some reason.I'm not sure if it's a problem with the package or Meteor or my code.
I use
[email protected]
Thanks!
The text was updated successfully, but these errors were encountered: