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
yarn add mobx-apollo
- Download https://raw.githubusercontent.com/sonaye/mobx-apollo/0.0.5/mobx-apollo.js
- 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