Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #2901
Closed
Open
Issue created Aug 04, 2017 by Administrator@rootContributor

Importing from node_modules results failing to compile

Created by: sonaye

When importing the mobx-apollo package from node_modules import { query } from 'mobx-apollo';, an error is being thrown, failing to compile.

When downloading the package (consists of one file) and importing it directly import { query } from './mobx-apollo'; it works perfectly, this is an odd behavior and I couldn't find any explanation to it.

Any ideas on what could be causing this issue?

Steps to Reproduce

  1. yarn add mobx-apollo
  2. Download https://raw.githubusercontent.com/sonaye/mobx-apollo/0.0.5/mobx-apollo.js
  3. Attempt https://github.com/sonaye/mobx-apollo/issues/5 on a fresh CRA

node 8.2.1 npm 4.6.1 yarn 0.27.5 react-scripts 1.0.10

macOS 10.12.6 Chrome 59.0.3071.115

Assignee
Assign to
Time tracking