Skip to content
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

failing when running jest tests #43

Closed
mabellLU opened this issue Feb 23, 2018 · 3 comments
Closed

failing when running jest tests #43

mabellLU opened this issue Feb 23, 2018 · 3 comments

Comments

@mabellLU
Copy link

mabellLU commented Feb 23, 2018

getting this error:

export var $$iterator = SYMBOL_ITERATOR || '@@iterator'
^^^^^^

SyntaxError: Unexpected token export

  at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:305:17)
  at Object.<anonymous> (node_modules/graphql-tools/dist/stitching/observableToAsyncIterable.js:46:17)
  at Object.<anonymous> (node_modules/graphql-tools/dist/stitching/makeRemoteExecutableSchema.js:45:35)
@leebyron
Copy link
Owner

Thanks for the report - could you share more about the environment you had set up which resulted in this issue?

Seems like the same issue as graphql/graphql-js#1248

@leebyron
Copy link
Owner

Looks like this is an issue with projects started with create-react-app and I've opened facebook/create-react-app#4085 to solve for it.

I'll keep this issue open to track progress.

@gaearon
Copy link

gaearon commented Apr 3, 2018

If your project is built with Create React App and not ejected, react-scripts@1.1.2 should fix this.
Here is how to upgrade:

https://github.com/facebook/create-react-app/releases/tag/v1.1.2

Otherwise you can apply a similar fix yourself in your project config. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants