-
Notifications
You must be signed in to change notification settings - Fork 261
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
Cannot use import statement outside a module for react-kapsule from react-force-graph-2d #494
Comments
@chkp-maksimz it looks like you're trying to import this module in a commonJs environment. This is an ES module and should be imported as such. It does not expose a commonJs entry point. |
@vasturiano I use import like this |
Those imports are correct. I suppose the issue is that your tests framework is running in a commonJs environment. They need to be ES modules based. |
Following as I get the same error on MacOS |
Describe the bug
Error "Cannot use import statement outside a module for react-kapsule from react-force-graph-2d"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: