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

Fixing "SyntaxError: Unexpected token export" #5

Open
arichter83 opened this issue Apr 1, 2019 · 0 comments
Open

Fixing "SyntaxError: Unexpected token export" #5

arichter83 opened this issue Apr 1, 2019 · 0 comments

Comments

@arichter83
Copy link
Collaborator

I had this error:

    Details:

    /Users/ar/meteor-react-typescript-nightwatch/node_modules/meteor-jest-stubs/lib/meteor/react-meteor-data.js:3
    export const withTracker = jest.fn(Op => jest.fn(C => createContainer(Op, C)));
    ^^^^^^

    SyntaxError: Unexpected token export

And could fix it with inlcuding this module again for the transform:

  // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
  transformIgnorePatterns: [
    "<roodDir>/node_modules/meteor-jest-stubs"
  ],

If this is always the case, it should be included in the README.

See:

@tomscholz tomscholz pinned this issue Apr 12, 2019
@tomscholz tomscholz unpinned this issue Apr 12, 2019
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

1 participant