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
Code change:
// import gql from 'graphql-tag';
import { gql } from 'graphql.macro';
Problem: Switching to use graphql.macro from graphql-tag throws following error:
Failed to compile.
./node_modules/require-from-string/index.js
Module not found: Can't resolve 'module' in '/Users/Documents/git/fwota-ui/node_modules/require-from-string'
The text was updated successfully, but these errors were encountered:
Hi @jpdorsy, thank you for reporting it.
Unfortunately, I can not reproduce it. Would you like to provide more information?
Here is a simple demo of the gql use case.
If graphql.macro only supports 2.x.x, as per this link (facebook/create-react-app#3909) isn't the .graphql file support already added to 2.x.x? Do we still need graphql.macro in that case? thanks.
jpdorsy
changed the title
Module not found: Can't resolve 'module' in '/Users/Documents/git/fwota-ui/node_modules/require-from-string'
Module not found: Can't resolve 'module' in '/Users/Documents/git/project-name/node_modules/require-from-string'
Apr 7, 2018
Environment: create-react-app (forked https://www.npmjs.com/package/custom-react-scripts)
Code change:
// import gql from 'graphql-tag';
import { gql } from 'graphql.macro';
Problem: Switching to use graphql.macro from graphql-tag throws following error:
The text was updated successfully, but these errors were encountered: