brianzinn/babylonjs-hook

SyntaxError: Cannot use import statement outside a module

Closed this issue · 2 comments

Good Evening,

I followed the documentation and I tried many different things, but I was not successfull...
I can run and build my react app, but I can not test it.

Jest is complaining about
import SceneComponent from 'babylonjs-hook';

Any ideas?

I don't know how your test environment is configured, but it's not setup for import statements.
Does this help?
https://github.com/facebook/jest/issues/9395

closing as this is a stale issue, but please re-open if above did not solve for you. cheers.