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

Syntax Error #14

Open
RehanShakir opened this issue Sep 27, 2022 · 1 comment
Open

Syntax Error #14

RehanShakir opened this issue Sep 27, 2022 · 1 comment

Comments

@RehanShakir
Copy link

I am receiving this error after adding transform: { '\\.(gql|graphql)$': 'jest-transform-graphql', 'l to jest config file

The error I am receiving
`SyntaxError: /Users/user/Desktop/newproj/fe-eventme/node_modules/react-native-ratings/dist/images/star.png: Unexpected character '�'. (1:0)

> 1 | �PNG
    | ^
  2 | 
  3 | 
  4 | IHDR2?��sRGB���YiTXtXML:com.adobe.xmp<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.4.0">

`

@comp615
Copy link

comp615 commented Oct 16, 2022

This problem does not seem related to jest-transform-graphql. More likely it's an issue with your specific setup or code as the transformer would not be loading a png file. Possible you have an invalid gql file, or something is otherwise wrong with your transformer setup

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

2 participants