Intended outcome:
Should be able to consume react-apollo/test-utils
Actual outcome:
ERROR in ./node_modules/react-apollo/test-utils.js
Module not found: Error: Can't resolve '../src' in '/[redacted]/node_modules/react-apollo'
How to reproduce the issue:
If you look at the transpiled output for this file, there seems to be some relative path replacement happening that breaks things:
import { ApolloProvider } from './';
becomes
var src_1 = require("../src");
// ...
src_1.ApolloProvider
And it should be:
var index_1 = require("./");
// ...
index_1.ApolloProvider
Version
Okay this is weird... it looks fine if I pull down the repo and compile it myself. It just seems to be wrong in NPM?
@evan-scott-zocdoc That's correct. This was fixed in #1721 but a new release has not yet been pushed to npm.
Oh, I see. @jbaxleyiii could another beta be pushed?
Is this the same problem that caused ApolloProvider getting undefined i.e. _Element type is invalid_ as soon as I upgraded to [email protected]?
import { ApolloProvider } from "react-apollo";
Closing - housekeeping
Most helpful comment
Oh, I see. @jbaxleyiii could another beta be pushed?