-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommonJS build is not available for testing #8181
Comments
@yskkin You're right, we ought to have a version of |
I found a similar issue that looked like I'm following tutorial to learn how to use this. What did I do
import { ApolloClient, InMemoryCache } from '@apollo/client';
const client = new ApolloClient({
uri: 'https://48p1r2roz4.sse.codesandbox.io',
cache: new InMemoryCache()
});
What did I receive
Did I miss something? version System:
Binaries:
npmPackages:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Intended outcome:
In vanilla (i.e. without react and webpack or any bundling tool), following testing code compiles
Actual outcome:
How to reproduce the issue:
This is not a case for production code since
import ... from "@apollo/client/core"
can skip importing@apollo/client/react
.But,
import { mockSingleLink } from "@apollo/client/utilities/testing/";
gives the following error since there is no CommonJS version of@apollo/client/utilities/testing
.Versions
System:
OS: macOS Mojave 10.14.6
Binaries:
Node: 12.6.0 - ~/.nodebrew/current/bin/node
Yarn: 1.17.3 - ~/.nodebrew/current/bin/yarn
npm: 6.9.0 - ~/.nodebrew/current/bin/npm
Browsers:
Chrome: 90.0.4430.93
Firefox: 84.0
Safari: 14.0.3
npmPackages:
@apollo/client: ^3.3.16 => 3.3.16
The text was updated successfully, but these errors were encountered: