You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.
import { graphql } from 'graphql'
console.log(graphql)
yarn test -t 'renders without crashing'
Expected Behavior
Test should pass
Actual Behavior
FAIL src/App.test.tsx
● Test suite failed to run
/Users/mbrowne/_temp/test-app/node_modules/graphql/index.mjs:2
export { graphql, graphqlSync } from './graphql';
^^^^^^
SyntaxError: Unexpected token export
Solution
This is a known bug in create-react-app. The fix should be simple: simply merge this PR into this repo (it was already merged into the official create-react-app).
The text was updated successfully, but these errors were encountered:
@gaearon this still needs to be fixed in react-scripts-ts. It doesn't make sense to use the official version of react-scripts as all the important functionality of this repo is provided by react-scripts-ts. But yes, you can alternatively eject and then apply that fix manually.
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes
Environment
All environments
Steps to Reproduce
yarn add [email protected] @types/graphql
Add the following code to App.tsx:
yarn test -t 'renders without crashing'
Expected Behavior
Test should pass
Actual Behavior
Solution
This is a known bug in create-react-app. The fix should be simple: simply merge this PR into this repo (it was already merged into the official create-react-app).
The text was updated successfully, but these errors were encountered: