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
Our project uses TS alias imports and we get the following error: import Query from '@shared/file.graphql'; Error: Cannot find module '@shared/file.graphql'
Only relative imports work: import Query from '../file.graphql';
The text was updated successfully, but these errors were encountered:
Alias cannot be used with "babel-plugin-import-graphql".
But!!!
Only "graphql-tag/loader","babel-plugin-import-graphql" are not used, but aliases can be used.
{
test: /.(graphql|gql)$/i,
use: [
{
loader: 'graphql-tag/loader',
},
],
},
Our project uses TS alias imports and we get the following error:
import Query from '@shared/file.graphql';
Error: Cannot find module '@shared/file.graphql'
Only relative imports work:
import Query from '../file.graphql';
The text was updated successfully, but these errors were encountered: