Skip to content

Commit

Permalink
Add pointer to fixes for es6/commonjs intermixing issue. (#69)
Browse files Browse the repository at this point in the history
Add docs pointing to a fix for "SyntaxError: Cannot use import statement outside a module", caused by mixing es6 and commonjs modules.
  • Loading branch information
ijcd authored Apr 25, 2020
1 parent f2d874a commit f834dab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ For the moment, please refer to [Jest.mli](https://github.com/glennsl/bs-jest/bl

* [bs-jest-dom](https://redex.github.io/package/bs-jest-dom/) - Custom matchers to test the state of the DOM

## Troubleshooting

If you encounter the error `SyntaxError: Cannot use import statement outside a module`, it may be that you are mixing `es6` and `commonjs` modules in your project. Please take a look at [#63](https://github.com/glennsl/bs-jest/issues/63) for ideas on how to fix this.

## Contribute
```sh
git clone https://github.com/glennsl/bs-jest.git
Expand Down

0 comments on commit f834dab

Please sign in to comment.