Skip to content

Module not found: Can't resolve 'module' in '/Users/Documents/git/project-name/node_modules/require-from-string' #25

Closed
@jpdorsy

Description

@jpdorsy

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:

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions